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 |
280 // --------------------------------------------------------------------------- | 283 // --------------------------------------------------------------------------- |
281 // JavaScript invokes | 284 // JavaScript invokes |
282 | 285 |
283 // Invoke the JavaScript function code by either calling or jumping. | 286 // Invoke the JavaScript function code by either calling or jumping. |
284 void InvokeCode(Register code, | 287 void InvokeCode(Register code, |
285 const ParameterCount& expected, | 288 const ParameterCount& expected, |
286 const ParameterCount& actual, | 289 const ParameterCount& actual, |
287 InvokeFlag flag, | 290 InvokeFlag flag, |
288 const CallWrapper& call_wrapper) { | 291 const CallWrapper& call_wrapper) { |
289 InvokeCode(Operand(code), expected, actual, flag, call_wrapper); | 292 InvokeCode(Operand(code), expected, actual, flag, call_wrapper); |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 } \ | 1079 } \ |
1077 masm-> | 1080 masm-> |
1078 #else | 1081 #else |
1079 #define ACCESS_MASM(masm) masm-> | 1082 #define ACCESS_MASM(masm) masm-> |
1080 #endif | 1083 #endif |
1081 | 1084 |
1082 | 1085 |
1083 } } // namespace v8::internal | 1086 } } // namespace v8::internal |
1084 | 1087 |
1085 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ | 1088 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ |
OLD | NEW |