| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC_LITHIUM_CODEGEN_PPC_H_ | 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_ |
| 6 #define V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_ | 6 #define V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_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/ppc/lithium-gap-resolver-ppc.h" | 10 #include "src/crankshaft/ppc/lithium-gap-resolver-ppc.h" |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 // true and false label should be made, to optimize fallthrough. | 252 // true and false label should be made, to optimize fallthrough. |
| 253 Condition EmitTypeofIs(Label* true_label, Label* false_label, Register input, | 253 Condition EmitTypeofIs(Label* true_label, Label* false_label, Register input, |
| 254 Handle<String> type_name); | 254 Handle<String> type_name); |
| 255 | 255 |
| 256 // Emits optimized code for %_IsString(x). Preserves input register. | 256 // Emits optimized code for %_IsString(x). Preserves input register. |
| 257 // Returns the condition on which a final split to | 257 // Returns the condition on which a final split to |
| 258 // true and false label should be made, to optimize fallthrough. | 258 // true and false label should be made, to optimize fallthrough. |
| 259 Condition EmitIsString(Register input, Register temp1, Label* is_not_string, | 259 Condition EmitIsString(Register input, Register temp1, Label* is_not_string, |
| 260 SmiCheck check_needed); | 260 SmiCheck check_needed); |
| 261 | 261 |
| 262 // Emits optimized code for %_IsConstructCall(). | |
| 263 // Caller should branch on equal condition. | |
| 264 void EmitIsConstructCall(Register temp1, Register temp2); | |
| 265 | |
| 266 // Emits optimized code to deep-copy the contents of statically known | 262 // Emits optimized code to deep-copy the contents of statically known |
| 267 // object graphs (e.g. object literal boilerplate). | 263 // object graphs (e.g. object literal boilerplate). |
| 268 void EmitDeepCopy(Handle<JSObject> object, Register result, Register source, | 264 void EmitDeepCopy(Handle<JSObject> object, Register result, Register source, |
| 269 int* offset, AllocationSiteMode mode); | 265 int* offset, AllocationSiteMode mode); |
| 270 | 266 |
| 271 void EnsureSpaceForLazyDeopt(int space_needed) override; | 267 void EnsureSpaceForLazyDeopt(int space_needed) override; |
| 272 void DoLoadKeyedExternalArray(LLoadKeyed* instr); | 268 void DoLoadKeyedExternalArray(LLoadKeyed* instr); |
| 273 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr); | 269 void DoLoadKeyedFixedDoubleArray(LLoadKeyed* instr); |
| 274 void DoLoadKeyedFixedArray(LLoadKeyed* instr); | 270 void DoLoadKeyedFixedArray(LLoadKeyed* instr); |
| 275 void DoStoreKeyedExternalArray(LStoreKeyed* instr); | 271 void DoStoreKeyedExternalArray(LStoreKeyed* instr); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 LCodeGen* codegen_; | 350 LCodeGen* codegen_; |
| 355 Label entry_; | 351 Label entry_; |
| 356 Label exit_; | 352 Label exit_; |
| 357 Label* external_exit_; | 353 Label* external_exit_; |
| 358 int instruction_index_; | 354 int instruction_index_; |
| 359 }; | 355 }; |
| 360 } // namespace internal | 356 } // namespace internal |
| 361 } // namespace v8 | 357 } // namespace v8 |
| 362 | 358 |
| 363 #endif // V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_ | 359 #endif // V8_CRANKSHAFT_PPC_LITHIUM_CODEGEN_PPC_H_ |
| OLD | NEW |