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_CRANKSHAFT_X87_LITHIUM_CODEGEN_X87_H_ | 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_CODEGEN_X87_H_ |
6 #define V8_CRANKSHAFT_X87_LITHIUM_CODEGEN_X87_H_ | 6 #define V8_CRANKSHAFT_X87_LITHIUM_CODEGEN_X87_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input); | 299 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input); |
300 | 300 |
301 // Emits optimized code for %_IsString(x). Preserves input register. | 301 // Emits optimized code for %_IsString(x). Preserves input register. |
302 // Returns the condition on which a final split to | 302 // Returns the condition on which a final split to |
303 // true and false label should be made, to optimize fallthrough. | 303 // true and false label should be made, to optimize fallthrough. |
304 Condition EmitIsString(Register input, | 304 Condition EmitIsString(Register input, |
305 Register temp1, | 305 Register temp1, |
306 Label* is_not_string, | 306 Label* is_not_string, |
307 SmiCheck check_needed); | 307 SmiCheck check_needed); |
308 | 308 |
309 // Emits optimized code for %_IsConstructCall(). | |
310 // Caller should branch on equal condition. | |
311 void EmitIsConstructCall(Register temp); | |
312 | |
313 // Emits optimized code to deep-copy the contents of statically known | 309 // Emits optimized code to deep-copy the contents of statically known |
314 // object graphs (e.g. object literal boilerplate). | 310 // object graphs (e.g. object literal boilerplate). |
315 void EmitDeepCopy(Handle<JSObject> object, | 311 void EmitDeepCopy(Handle<JSObject> object, |
316 Register result, | 312 Register result, |
317 Register source, | 313 Register source, |
318 int* offset, | 314 int* offset, |
319 AllocationSiteMode mode); | 315 AllocationSiteMode mode); |
320 | 316 |
321 void EnsureSpaceForLazyDeopt(int space_needed) override; | 317 void EnsureSpaceForLazyDeopt(int space_needed) override; |
322 void DoLoadKeyedExternalArray(LLoadKeyed* instr); | 318 void DoLoadKeyedExternalArray(LLoadKeyed* instr); |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 Label* external_exit_; | 492 Label* external_exit_; |
497 Label done_; | 493 Label done_; |
498 int instruction_index_; | 494 int instruction_index_; |
499 LCodeGen::X87Stack x87_stack_; | 495 LCodeGen::X87Stack x87_stack_; |
500 }; | 496 }; |
501 | 497 |
502 } // namespace internal | 498 } // namespace internal |
503 } // namespace v8 | 499 } // namespace v8 |
504 | 500 |
505 #endif // V8_CRANKSHAFT_X87_LITHIUM_CODEGEN_X87_H_ | 501 #endif // V8_CRANKSHAFT_X87_LITHIUM_CODEGEN_X87_H_ |
OLD | NEW |