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

Side by Side Diff: runtime/vm/constants_ia32.h

Issue 12776006: Make allocation of Dart parameters and local variables architecture independent. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 #ifndef VM_CONSTANTS_IA32_H_ 5 #ifndef VM_CONSTANTS_IA32_H_
6 #define VM_CONSTANTS_IA32_H_ 6 #define VM_CONSTANTS_IA32_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 const Register FPREG = EBP; // Frame pointer register. 66 const Register FPREG = EBP; // Frame pointer register.
67 67
68 // Exception object is passed in this register to the catch handlers when an 68 // Exception object is passed in this register to the catch handlers when an
69 // exception is thrown. 69 // exception is thrown.
70 const Register kExceptionObjectReg = EAX; 70 const Register kExceptionObjectReg = EAX;
71 71
72 // Stack trace object is passed in this register to the catch handlers when 72 // Stack trace object is passed in this register to the catch handlers when
73 // an exception is thrown. 73 // an exception is thrown.
74 const Register kStackTraceObjectReg = EDX; 74 const Register kStackTraceObjectReg = EDX;
75 75
76
77 // Dart stack frame layout.
78 static const int kLastParamSlotIndex = 2;
79 static const int kFirstLocalSlotIndex = -2;
siva 2013/03/14 21:50:33 This file was meant for processor specific constan
80
81
76 enum ScaleFactor { 82 enum ScaleFactor {
77 TIMES_1 = 0, 83 TIMES_1 = 0,
78 TIMES_2 = 1, 84 TIMES_2 = 1,
79 TIMES_4 = 2, 85 TIMES_4 = 2,
80 TIMES_8 = 3, 86 TIMES_8 = 3,
81 TIMES_HALF_WORD_SIZE = kWordSizeLog2 - 1 87 TIMES_HALF_WORD_SIZE = kWordSizeLog2 - 1
82 }; 88 };
83 89
84 90
85 enum Condition { 91 enum Condition {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 }; 140 };
135 141
136 142
137 // The largest multibyte nop we will emit. This could go up to 15 if it 143 // The largest multibyte nop we will emit. This could go up to 15 if it
138 // becomes important to us. 144 // becomes important to us.
139 const int MAX_NOP_SIZE = 8; 145 const int MAX_NOP_SIZE = 8;
140 146
141 } // namespace dart 147 } // namespace dart
142 148
143 #endif // VM_CONSTANTS_IA32_H_ 149 #endif // VM_CONSTANTS_IA32_H_
OLDNEW
« no previous file with comments | « runtime/vm/constants_arm.h ('k') | runtime/vm/constants_mips.h » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698