| 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_X64_LITHIUM_CODEGEN_X64_H_ | 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ |
| 6 #define V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ | 6 #define V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ |
| 7 | 7 |
| 8 | 8 |
| 9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
| 10 #include "src/base/logging.h" | 10 #include "src/base/logging.h" |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input); | 266 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input); |
| 267 | 267 |
| 268 // Emits optimized code for %_IsString(x). Preserves input register. | 268 // Emits optimized code for %_IsString(x). Preserves input register. |
| 269 // Returns the condition on which a final split to | 269 // Returns the condition on which a final split to |
| 270 // true and false label should be made, to optimize fallthrough. | 270 // true and false label should be made, to optimize fallthrough. |
| 271 Condition EmitIsString(Register input, | 271 Condition EmitIsString(Register input, |
| 272 Register temp1, | 272 Register temp1, |
| 273 Label* is_not_string, | 273 Label* is_not_string, |
| 274 SmiCheck check_needed); | 274 SmiCheck check_needed); |
| 275 | 275 |
| 276 // Emits optimized code for %_IsConstructCall(). | |
| 277 // Caller should branch on equal condition. | |
| 278 void EmitIsConstructCall(Register temp); | |
| 279 | |
| 280 // Emits code for pushing either a tagged constant, a (non-double) | 276 // Emits code for pushing either a tagged constant, a (non-double) |
| 281 // register, or a stack slot operand. | 277 // register, or a stack slot operand. |
| 282 void EmitPushTaggedOperand(LOperand* operand); | 278 void EmitPushTaggedOperand(LOperand* operand); |
| 283 | 279 |
| 284 // Emits optimized code to deep-copy the contents of statically known | 280 // Emits optimized code to deep-copy the contents of statically known |
| 285 // object graphs (e.g. object literal boilerplate). | 281 // object graphs (e.g. object literal boilerplate). |
| 286 void EmitDeepCopy(Handle<JSObject> object, | 282 void EmitDeepCopy(Handle<JSObject> object, |
| 287 Register result, | 283 Register result, |
| 288 Register source, | 284 Register source, |
| 289 int* offset, | 285 int* offset, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 Label exit_; | 380 Label exit_; |
| 385 Label done_; | 381 Label done_; |
| 386 Label* external_exit_; | 382 Label* external_exit_; |
| 387 int instruction_index_; | 383 int instruction_index_; |
| 388 }; | 384 }; |
| 389 | 385 |
| 390 } // namespace internal | 386 } // namespace internal |
| 391 } // namespace v8 | 387 } // namespace v8 |
| 392 | 388 |
| 393 #endif // V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ | 389 #endif // V8_CRANKSHAFT_X64_LITHIUM_CODEGEN_X64_H_ |
| OLD | NEW |