OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 292 |
293 void CmpObject(Register reg, Handle<Object> object) { | 293 void CmpObject(Register reg, Handle<Object> object) { |
294 AllowDeferredHandleDereference heap_object_check; | 294 AllowDeferredHandleDereference heap_object_check; |
295 if (object->IsHeapObject()) { | 295 if (object->IsHeapObject()) { |
296 CmpHeapObject(reg, Handle<HeapObject>::cast(object)); | 296 CmpHeapObject(reg, Handle<HeapObject>::cast(object)); |
297 } else { | 297 } else { |
298 cmp(reg, Immediate(object)); | 298 cmp(reg, Immediate(object)); |
299 } | 299 } |
300 } | 300 } |
301 | 301 |
302 // Compare the given value and the value of weak cell. | |
303 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch); | |
304 | |
305 // Load the value of the weak cell in the value register. Branch to the given | |
306 // miss label if the weak cell was cleared. | |
307 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); | |
308 | |
309 // --------------------------------------------------------------------------- | 302 // --------------------------------------------------------------------------- |
310 // JavaScript invokes | 303 // JavaScript invokes |
311 | 304 |
312 // Invoke the JavaScript function code by either calling or jumping. | 305 // Invoke the JavaScript function code by either calling or jumping. |
313 void InvokeCode(Register code, | 306 void InvokeCode(Register code, |
314 const ParameterCount& expected, | 307 const ParameterCount& expected, |
315 const ParameterCount& actual, | 308 const ParameterCount& actual, |
316 InvokeFlag flag, | 309 InvokeFlag flag, |
317 const CallWrapper& call_wrapper) { | 310 const CallWrapper& call_wrapper) { |
318 InvokeCode(Operand(code), expected, actual, flag, call_wrapper); | 311 InvokeCode(Operand(code), expected, actual, flag, call_wrapper); |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1117 } \ | 1110 } \ |
1118 masm-> | 1111 masm-> |
1119 #else | 1112 #else |
1120 #define ACCESS_MASM(masm) masm-> | 1113 #define ACCESS_MASM(masm) masm-> |
1121 #endif | 1114 #endif |
1122 | 1115 |
1123 | 1116 |
1124 } } // namespace v8::internal | 1117 } } // namespace v8::internal |
1125 | 1118 |
1126 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1119 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |