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_X87_MACRO_ASSEMBLER_X87_H_ | 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_ |
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ | 6 #define V8_X87_MACRO_ASSEMBLER_X87_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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 270 |
271 void CmpObject(Register reg, Handle<Object> object) { | 271 void CmpObject(Register reg, Handle<Object> object) { |
272 AllowDeferredHandleDereference heap_object_check; | 272 AllowDeferredHandleDereference heap_object_check; |
273 if (object->IsHeapObject()) { | 273 if (object->IsHeapObject()) { |
274 CmpHeapObject(reg, Handle<HeapObject>::cast(object)); | 274 CmpHeapObject(reg, Handle<HeapObject>::cast(object)); |
275 } else { | 275 } else { |
276 cmp(reg, Immediate(object)); | 276 cmp(reg, Immediate(object)); |
277 } | 277 } |
278 } | 278 } |
279 | 279 |
280 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch); | |
281 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); | |
282 | |
283 // --------------------------------------------------------------------------- | 280 // --------------------------------------------------------------------------- |
284 // JavaScript invokes | 281 // JavaScript invokes |
285 | 282 |
286 // Invoke the JavaScript function code by either calling or jumping. | 283 // Invoke the JavaScript function code by either calling or jumping. |
287 void InvokeCode(Register code, | 284 void InvokeCode(Register code, |
288 const ParameterCount& expected, | 285 const ParameterCount& expected, |
289 const ParameterCount& actual, | 286 const ParameterCount& actual, |
290 InvokeFlag flag, | 287 InvokeFlag flag, |
291 const CallWrapper& call_wrapper) { | 288 const CallWrapper& call_wrapper) { |
292 InvokeCode(Operand(code), expected, actual, flag, call_wrapper); | 289 InvokeCode(Operand(code), expected, actual, flag, call_wrapper); |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1079 } \ | 1076 } \ |
1080 masm-> | 1077 masm-> |
1081 #else | 1078 #else |
1082 #define ACCESS_MASM(masm) masm-> | 1079 #define ACCESS_MASM(masm) masm-> |
1083 #endif | 1080 #endif |
1084 | 1081 |
1085 | 1082 |
1086 } } // namespace v8::internal | 1083 } } // namespace v8::internal |
1087 | 1084 |
1088 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ | 1085 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ |
OLD | NEW |