Revision f230a1cf deps/v8/test/cctest/test-assembler-arm.cc

View differences:

deps/v8/test/cctest/test-assembler-arm.cc
47 47

  
48 48
TEST(0) {
49 49
  CcTest::InitializeVM();
50
  Isolate* isolate = Isolate::Current();
50
  Isolate* isolate = CcTest::i_isolate();
51 51
  HandleScope scope(isolate);
52 52

  
53 53
  Assembler assm(isolate, NULL, 0);
......
74 74

  
75 75
TEST(1) {
76 76
  CcTest::InitializeVM();
77
  Isolate* isolate = Isolate::Current();
77
  Isolate* isolate = CcTest::i_isolate();
78 78
  HandleScope scope(isolate);
79 79

  
80 80
  Assembler assm(isolate, NULL, 0);
......
112 112

  
113 113
TEST(2) {
114 114
  CcTest::InitializeVM();
115
  Isolate* isolate = Isolate::Current();
115
  Isolate* isolate = CcTest::i_isolate();
116 116
  HandleScope scope(isolate);
117 117

  
118 118
  Assembler assm(isolate, NULL, 0);
......
159 159

  
160 160
TEST(3) {
161 161
  CcTest::InitializeVM();
162
  Isolate* isolate = Isolate::Current();
162
  Isolate* isolate = CcTest::i_isolate();
163 163
  HandleScope scope(isolate);
164 164

  
165 165
  typedef struct {
......
215 215
TEST(4) {
216 216
  // Test the VFP floating point instructions.
217 217
  CcTest::InitializeVM();
218
  Isolate* isolate = Isolate::Current();
218
  Isolate* isolate = CcTest::i_isolate();
219 219
  HandleScope scope(isolate);
220 220

  
221 221
  typedef struct {
......
363 363
TEST(5) {
364 364
  // Test the ARMv7 bitfield instructions.
365 365
  CcTest::InitializeVM();
366
  Isolate* isolate = Isolate::Current();
366
  Isolate* isolate = CcTest::i_isolate();
367 367
  HandleScope scope(isolate);
368 368

  
369 369
  Assembler assm(isolate, NULL, 0);
......
400 400
TEST(6) {
401 401
  // Test saturating instructions.
402 402
  CcTest::InitializeVM();
403
  Isolate* isolate = Isolate::Current();
403
  Isolate* isolate = CcTest::i_isolate();
404 404
  HandleScope scope(isolate);
405 405

  
406 406
  Assembler assm(isolate, NULL, 0);
......
443 443
                             double value,
444 444
                             int expected,
445 445
                             bool expected_exception = false) {
446
  CcTest::InitializeVM();
447
  Isolate* isolate = Isolate::Current();
446
  Isolate* isolate = CcTest::i_isolate();
448 447
  HandleScope scope(isolate);
449 448

  
450 449
  Assembler assm(isolate, NULL, 0);
......
511 510

  
512 511

  
513 512
TEST(7) {
513
  CcTest::InitializeVM();
514 514
  // Test vfp rounding modes.
515 515

  
516 516
  // s32_f64 (double to integer).
......
623 623
TEST(8) {
624 624
  // Test VFP multi load/store with ia_w.
625 625
  CcTest::InitializeVM();
626
  Isolate* isolate = Isolate::Current();
626
  Isolate* isolate = CcTest::i_isolate();
627 627
  HandleScope scope(isolate);
628 628

  
629 629
  typedef struct {
......
731 731
TEST(9) {
732 732
  // Test VFP multi load/store with ia.
733 733
  CcTest::InitializeVM();
734
  Isolate* isolate = Isolate::Current();
734
  Isolate* isolate = CcTest::i_isolate();
735 735
  HandleScope scope(isolate);
736 736

  
737 737
  typedef struct {
......
843 843
TEST(10) {
844 844
  // Test VFP multi load/store with db_w.
845 845
  CcTest::InitializeVM();
846
  Isolate* isolate = Isolate::Current();
846
  Isolate* isolate = CcTest::i_isolate();
847 847
  HandleScope scope(isolate);
848 848

  
849 849
  typedef struct {
......
951 951
TEST(11) {
952 952
  // Test instructions using the carry flag.
953 953
  CcTest::InitializeVM();
954
  Isolate* isolate = Isolate::Current();
954
  Isolate* isolate = CcTest::i_isolate();
955 955
  HandleScope scope(isolate);
956 956

  
957 957
  typedef struct {
......
1017 1017
TEST(12) {
1018 1018
  // Test chaining of label usages within instructions (issue 1644).
1019 1019
  CcTest::InitializeVM();
1020
  Isolate* isolate = Isolate::Current();
1020
  Isolate* isolate = CcTest::i_isolate();
1021 1021
  HandleScope scope(isolate);
1022 1022

  
1023 1023
  Assembler assm(isolate, NULL, 0);
......
1032 1032
TEST(13) {
1033 1033
  // Test VFP instructions using registers d16-d31.
1034 1034
  CcTest::InitializeVM();
1035
  Isolate* isolate = Isolate::Current();
1035
  Isolate* isolate = CcTest::i_isolate();
1036 1036
  HandleScope scope(isolate);
1037 1037

  
1038 1038
  if (!CpuFeatures::IsSupported(VFP32DREGS)) {
......
1160 1160
TEST(14) {
1161 1161
  // Test the VFP Canonicalized Nan mode.
1162 1162
  CcTest::InitializeVM();
1163
  Isolate* isolate = Isolate::Current();
1163
  Isolate* isolate = CcTest::i_isolate();
1164 1164
  HandleScope scope(isolate);
1165 1165

  
1166 1166
  typedef struct {
......
1240 1240
TEST(15) {
1241 1241
  // Test the Neon instructions.
1242 1242
  CcTest::InitializeVM();
1243
  Isolate* isolate = Isolate::Current();
1243
  Isolate* isolate = CcTest::i_isolate();
1244 1244
  HandleScope scope(isolate);
1245 1245

  
1246 1246
  typedef struct {
......
1347 1347
TEST(16) {
1348 1348
  // Test the pkh, uxtb, uxtab and uxtb16 instructions.
1349 1349
  CcTest::InitializeVM();
1350
  Isolate* isolate = Isolate::Current();
1350
  Isolate* isolate = CcTest::i_isolate();
1351 1351
  HandleScope scope(isolate);
1352 1352

  
1353 1353
  typedef struct {
......
1423 1423
  // Test generating labels at high addresses.
1424 1424
  // Should not assert.
1425 1425
  CcTest::InitializeVM();
1426
  Isolate* isolate = Isolate::Current();
1426
  Isolate* isolate = CcTest::i_isolate();
1427 1427
  HandleScope scope(isolate);
1428 1428

  
1429 1429
  // Generate a code segment that will be longer than 2^24 bytes.
......
1443 1443
  // Test extracting the offset of a label from the beginning of the code
1444 1444
  // in a register.
1445 1445
  CcTest::InitializeVM();
1446
  Isolate* isolate = Isolate::Current();
1446
  Isolate* isolate = CcTest::i_isolate();
1447 1447
  HandleScope scope(isolate);
1448 1448
  // Initialize a code object that will contain the code.
1449 1449
  Handle<Object> code_object(isolate->heap()->undefined_value(), isolate);

Also available in: Unified diff