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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 void CmpObject(Register reg, Handle<Object> object) { | 267 void CmpObject(Register reg, Handle<Object> object) { |
268 AllowDeferredHandleDereference heap_object_check; | 268 AllowDeferredHandleDereference heap_object_check; |
269 if (object->IsHeapObject()) { | 269 if (object->IsHeapObject()) { |
270 CmpHeapObject(reg, Handle<HeapObject>::cast(object)); | 270 CmpHeapObject(reg, Handle<HeapObject>::cast(object)); |
271 } else { | 271 } else { |
272 cmp(reg, Immediate(object)); | 272 cmp(reg, Immediate(object)); |
273 } | 273 } |
274 } | 274 } |
275 | 275 |
276 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch); | 276 void CmpWeakValue(Register value, Handle<WeakCell> cell, Register scratch); |
| 277 void GetWeakValue(Register value, Handle<WeakCell> cell); |
277 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); | 278 void LoadWeakValue(Register value, Handle<WeakCell> cell, Label* miss); |
278 | 279 |
279 // --------------------------------------------------------------------------- | 280 // --------------------------------------------------------------------------- |
280 // JavaScript invokes | 281 // JavaScript invokes |
281 | 282 |
282 // Invoke the JavaScript function code by either calling or jumping. | 283 // Invoke the JavaScript function code by either calling or jumping. |
283 void InvokeCode(Register code, | 284 void InvokeCode(Register code, |
284 const ParameterCount& expected, | 285 const ParameterCount& expected, |
285 const ParameterCount& actual, | 286 const ParameterCount& actual, |
286 InvokeFlag flag, | 287 InvokeFlag flag, |
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 } \ | 1054 } \ |
1054 masm-> | 1055 masm-> |
1055 #else | 1056 #else |
1056 #define ACCESS_MASM(masm) masm-> | 1057 #define ACCESS_MASM(masm) masm-> |
1057 #endif | 1058 #endif |
1058 | 1059 |
1059 | 1060 |
1060 } } // namespace v8::internal | 1061 } } // namespace v8::internal |
1061 | 1062 |
1062 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ | 1063 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ |
OLD | NEW |