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 #if V8_TARGET_ARCH_PPC | 5 #if V8_TARGET_ARCH_PPC |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 1371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1382 __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index())); | 1382 __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index())); |
1383 __ mov(r4, Operand(constant_properties)); | 1383 __ mov(r4, Operand(constant_properties)); |
1384 int flags = expr->ComputeFlags(); | 1384 int flags = expr->ComputeFlags(); |
1385 __ LoadSmiLiteral(r3, Smi::FromInt(flags)); | 1385 __ LoadSmiLiteral(r3, Smi::FromInt(flags)); |
1386 if (MustCreateObjectLiteralWithRuntime(expr)) { | 1386 if (MustCreateObjectLiteralWithRuntime(expr)) { |
1387 __ Push(r6, r5, r4, r3); | 1387 __ Push(r6, r5, r4, r3); |
1388 __ CallRuntime(Runtime::kCreateObjectLiteral); | 1388 __ CallRuntime(Runtime::kCreateObjectLiteral); |
1389 } else { | 1389 } else { |
1390 FastCloneShallowObjectStub stub(isolate(), expr->properties_count()); | 1390 FastCloneShallowObjectStub stub(isolate(), expr->properties_count()); |
1391 __ CallStub(&stub); | 1391 __ CallStub(&stub); |
1392 __ LoadP(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | |
1393 } | 1392 } |
1394 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG); | 1393 PrepareForBailoutForId(expr->CreateLiteralId(), TOS_REG); |
1395 | 1394 |
1396 // If result_saved is true the result is on top of the stack. If | 1395 // If result_saved is true the result is on top of the stack. If |
1397 // result_saved is false the result is in r3. | 1396 // result_saved is false the result is in r3. |
1398 bool result_saved = false; | 1397 bool result_saved = false; |
1399 | 1398 |
1400 AccessorTable accessor_table(zone()); | 1399 AccessorTable accessor_table(zone()); |
1401 int property_index = 0; | 1400 int property_index = 0; |
1402 for (; property_index < expr->properties()->length(); property_index++) { | 1401 for (; property_index < expr->properties()->length(); property_index++) { |
(...skipping 2670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4073 | 4072 |
4074 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 4073 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); |
4075 | 4074 |
4076 DCHECK(interrupt_address == | 4075 DCHECK(interrupt_address == |
4077 isolate->builtins()->OnStackReplacement()->entry()); | 4076 isolate->builtins()->OnStackReplacement()->entry()); |
4078 return ON_STACK_REPLACEMENT; | 4077 return ON_STACK_REPLACEMENT; |
4079 } | 4078 } |
4080 } // namespace internal | 4079 } // namespace internal |
4081 } // namespace v8 | 4080 } // namespace v8 |
4082 #endif // V8_TARGET_ARCH_PPC | 4081 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |