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_MIPS64_LITHIUM_CODEGEN_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ |
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ |
7 | 7 |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/crankshaft/lithium-codegen.h" | 9 #include "src/crankshaft/lithium-codegen.h" |
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" | 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 Operand* cmp2); | 306 Operand* cmp2); |
307 | 307 |
308 // Emits optimized code for %_IsString(x). Preserves input register. | 308 // Emits optimized code for %_IsString(x). Preserves input register. |
309 // Returns the condition on which a final split to | 309 // Returns the condition on which a final split to |
310 // true and false label should be made, to optimize fallthrough. | 310 // true and false label should be made, to optimize fallthrough. |
311 Condition EmitIsString(Register input, | 311 Condition EmitIsString(Register input, |
312 Register temp1, | 312 Register temp1, |
313 Label* is_not_string, | 313 Label* is_not_string, |
314 SmiCheck check_needed); | 314 SmiCheck check_needed); |
315 | 315 |
316 // Emits optimized code for %_IsConstructCall(). | |
317 // Caller should branch on equal condition. | |
318 void EmitIsConstructCall(Register temp1, Register temp2); | |
319 | |
320 // Emits optimized code to deep-copy the contents of statically known | 316 // Emits optimized code to deep-copy the contents of statically known |
321 // object graphs (e.g. object literal boilerplate). | 317 // object graphs (e.g. object literal boilerplate). |
322 void EmitDeepCopy(Handle<JSObject> object, | 318 void EmitDeepCopy(Handle<JSObject> object, |
323 Register result, | 319 Register result, |
324 Register source, | 320 Register source, |
325 int* offset, | 321 int* offset, |
326 AllocationSiteMode mode); | 322 AllocationSiteMode mode); |
327 // Emit optimized code for integer division. | 323 // Emit optimized code for integer division. |
328 // Inputs are signed. | 324 // Inputs are signed. |
329 // All registers are clobbered. | 325 // All registers are clobbered. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 Label entry_; | 422 Label entry_; |
427 Label exit_; | 423 Label exit_; |
428 Label* external_exit_; | 424 Label* external_exit_; |
429 int instruction_index_; | 425 int instruction_index_; |
430 }; | 426 }; |
431 | 427 |
432 } // namespace internal | 428 } // namespace internal |
433 } // namespace v8 | 429 } // namespace v8 |
434 | 430 |
435 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ | 431 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_CODEGEN_MIPS_H_ |
OLD | NEW |