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

Side by Side Diff: vm/assembler_ia32.cc

Issue 10173008: Simplify representation of stack frames. Remove the special types DartFrame/StubFrame and instead u… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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/heap.h" 9 #include "vm/heap.h"
10 #include "vm/memory_region.h" 10 #include "vm/memory_region.h"
(...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 } 1402 }
1403 } 1403 }
1404 1404
1405 1405
1406 void Assembler::LeaveFrame() { 1406 void Assembler::LeaveFrame() {
1407 movl(ESP, EBP); 1407 movl(ESP, EBP);
1408 popl(EBP); 1408 popl(EBP);
1409 } 1409 }
1410 1410
1411 1411
1412 void Assembler::CallRuntimeFromDart(const RuntimeEntry& entry) { 1412 void Assembler::CallRuntime(const RuntimeEntry& entry) {
1413 entry.CallFromDart(this); 1413 entry.Call(this);
1414 }
1415
1416
1417 void Assembler::CallRuntimeFromStub(const RuntimeEntry& entry) {
1418 entry.CallFromStub(this);
1419 } 1414 }
1420 1415
1421 1416
1422 void Assembler::Align(int alignment, int offset) { 1417 void Assembler::Align(int alignment, int offset) {
1423 ASSERT(Utils::IsPowerOfTwo(alignment)); 1418 ASSERT(Utils::IsPowerOfTwo(alignment));
1424 int pos = offset + buffer_.GetPosition(); 1419 int pos = offset + buffer_.GetPosition();
1425 int mod = pos & (alignment - 1); 1420 int mod = pos & (alignment - 1);
1426 if (mod == 0) { 1421 if (mod == 0) {
1427 return; 1422 return;
1428 } 1423 }
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1560 Register shifter) { 1555 Register shifter) {
1561 AssemblerBuffer::EnsureCapacity ensured(&buffer_); 1556 AssemblerBuffer::EnsureCapacity ensured(&buffer_);
1562 ASSERT(shifter == ECX); 1557 ASSERT(shifter == ECX);
1563 EmitUint8(0xD3); 1558 EmitUint8(0xD3);
1564 EmitOperand(rm, Operand(operand)); 1559 EmitOperand(rm, Operand(operand));
1565 } 1560 }
1566 1561
1567 } // namespace dart 1562 } // namespace dart
1568 1563
1569 #endif // defined TARGET_ARCH_IA32 1564 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « vm/assembler_ia32.h ('k') | vm/assembler_x64.h » ('j') | vm/code_generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698