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

Side by Side Diff: vm/assembler_x64.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_X64) 6 #if defined(TARGET_ARCH_X64)
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 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1359 } 1359 }
1360 } 1360 }
1361 1361
1362 1362
1363 void Assembler::LeaveFrame() { 1363 void Assembler::LeaveFrame() {
1364 movq(RSP, RBP); 1364 movq(RSP, RBP);
1365 popq(RBP); 1365 popq(RBP);
1366 } 1366 }
1367 1367
1368 1368
1369 void Assembler::CallRuntimeFromDart(const RuntimeEntry& entry) { 1369 void Assembler::CallRuntime(const RuntimeEntry& entry) {
1370 entry.CallFromDart(this); 1370 entry.Call(this);
1371 }
1372
1373
1374 void Assembler::CallRuntimeFromStub(const RuntimeEntry& entry) {
1375 entry.CallFromStub(this);
1376 } 1371 }
1377 1372
1378 1373
1379 void Assembler::Align(int alignment, int offset) { 1374 void Assembler::Align(int alignment, int offset) {
1380 ASSERT(Utils::IsPowerOfTwo(alignment)); 1375 ASSERT(Utils::IsPowerOfTwo(alignment));
1381 int pos = offset + buffer_.GetPosition(); 1376 int pos = offset + buffer_.GetPosition();
1382 int mod = pos & (alignment - 1); 1377 int mod = pos & (alignment - 1);
1383 if (mod == 0) { 1378 if (mod == 0) {
1384 return; 1379 return;
1385 } 1380 }
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 } else { 1502 } else {
1508 EmitRegisterREX(operand, REX_NONE); 1503 EmitRegisterREX(operand, REX_NONE);
1509 } 1504 }
1510 EmitUint8(0xD3); 1505 EmitUint8(0xD3);
1511 EmitOperand(rm, Operand(operand)); 1506 EmitOperand(rm, Operand(operand));
1512 } 1507 }
1513 1508
1514 } // namespace dart 1509 } // namespace dart
1515 1510
1516 #endif // defined TARGET_ARCH_X64 1511 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « vm/assembler_x64.h ('k') | vm/code_generator.cc » ('j') | vm/code_generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698