Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: runtime/vm/stub_code_ia32.cc

Issue 14323003: Uncomment more vm tests on ARM (and some on MIPS too). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 void StubCode::GenerateAllocateArrayStub(Assembler* assembler) { 470 void StubCode::GenerateAllocateArrayStub(Assembler* assembler) {
471 Label slow_case; 471 Label slow_case;
472 const Immediate& raw_null = 472 const Immediate& raw_null =
473 Immediate(reinterpret_cast<intptr_t>(Object::null())); 473 Immediate(reinterpret_cast<intptr_t>(Object::null()));
474 474
475 if (FLAG_inline_alloc) { 475 if (FLAG_inline_alloc) {
476 // Compute the size to be allocated, it is based on the array length 476 // Compute the size to be allocated, it is based on the array length
477 // and is computed as: 477 // and is computed as:
478 // RoundedAllocationSize((array_length * kwordSize) + sizeof(RawArray)). 478 // RoundedAllocationSize((array_length * kwordSize) + sizeof(RawArray)).
479 // Assert that length is a Smi. 479 // Assert that length is a Smi.
480 __ testl(EDX, Immediate(kSmiTagSize)); 480 __ testl(EDX, Immediate(kSmiTagMask));
481 if (FLAG_use_slow_path) { 481 if (FLAG_use_slow_path) {
482 __ jmp(&slow_case); 482 __ jmp(&slow_case);
483 } else { 483 } else {
484 __ j(NOT_ZERO, &slow_case); 484 __ j(NOT_ZERO, &slow_case);
485 } 485 }
486 __ movl(EDI, FieldAddress(CTX, Context::isolate_offset())); 486 __ movl(EDI, FieldAddress(CTX, Context::isolate_offset()));
487 __ movl(EDI, Address(EDI, Isolate::heap_offset())); 487 __ movl(EDI, Address(EDI, Isolate::heap_offset()));
488 __ movl(EDI, Address(EDI, Heap::new_space_offset())); 488 __ movl(EDI, Address(EDI, Heap::new_space_offset()));
489 489
490 // Calculate and align allocation size. 490 // Calculate and align allocation size.
(...skipping 1626 matching lines...) Expand 10 before | Expand all | Expand 10 after
2117 __ Bind(&done); 2117 __ Bind(&done);
2118 __ popl(temp); 2118 __ popl(temp);
2119 __ popl(right); 2119 __ popl(right);
2120 __ popl(left); 2120 __ popl(left);
2121 __ ret(); 2121 __ ret();
2122 } 2122 }
2123 2123
2124 } // namespace dart 2124 } // namespace dart
2125 2125
2126 #endif // defined TARGET_ARCH_IA32 2126 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698