| 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_IA32_LITHIUM_CODEGEN_IA32_H_ | 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ |
| 6 #define V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ | 6 #define V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ |
| 7 | 7 |
| 8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
| 9 #include "src/base/logging.h" | 9 #include "src/base/logging.h" |
| 10 #include "src/crankshaft/ia32/lithium-gap-resolver-ia32.h" | 10 #include "src/crankshaft/ia32/lithium-gap-resolver-ia32.h" |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input); | 270 Condition EmitTypeofIs(LTypeofIsAndBranch* instr, Register input); |
| 271 | 271 |
| 272 // Emits optimized code for %_IsString(x). Preserves input register. | 272 // Emits optimized code for %_IsString(x). Preserves input register. |
| 273 // Returns the condition on which a final split to | 273 // Returns the condition on which a final split to |
| 274 // true and false label should be made, to optimize fallthrough. | 274 // true and false label should be made, to optimize fallthrough. |
| 275 Condition EmitIsString(Register input, | 275 Condition EmitIsString(Register input, |
| 276 Register temp1, | 276 Register temp1, |
| 277 Label* is_not_string, | 277 Label* is_not_string, |
| 278 SmiCheck check_needed); | 278 SmiCheck check_needed); |
| 279 | 279 |
| 280 // Emits optimized code for %_IsConstructCall(). | |
| 281 // Caller should branch on equal condition. | |
| 282 void EmitIsConstructCall(Register temp); | |
| 283 | |
| 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, |
| 290 AllocationSiteMode mode); | 286 AllocationSiteMode mode); |
| 291 | 287 |
| 292 void EnsureSpaceForLazyDeopt(int space_needed) override; | 288 void EnsureSpaceForLazyDeopt(int space_needed) override; |
| 293 void DoLoadKeyedExternalArray(LLoadKeyed* instr); | 289 void DoLoadKeyedExternalArray(LLoadKeyed* instr); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 Label exit_; | 390 Label exit_; |
| 395 Label* external_exit_; | 391 Label* external_exit_; |
| 396 Label done_; | 392 Label done_; |
| 397 int instruction_index_; | 393 int instruction_index_; |
| 398 }; | 394 }; |
| 399 | 395 |
| 400 } // namespace internal | 396 } // namespace internal |
| 401 } // namespace v8 | 397 } // namespace v8 |
| 402 | 398 |
| 403 #endif // V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ | 399 #endif // V8_CRANKSHAFT_IA32_LITHIUM_CODEGEN_IA32_H_ |
| OLD | NEW |