Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(583)

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.cc

Issue 1868173002: Version 5.1.294.1 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.1.294
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 2562 matching lines...) Expand 10 before | Expand all | Expand 10 after
3965 3964
3966 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 3965 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
3967 3966
3968 DCHECK(interrupt_address == 3967 DCHECK(interrupt_address ==
3969 isolate->builtins()->OnStackReplacement()->entry()); 3968 isolate->builtins()->OnStackReplacement()->entry());
3970 return ON_STACK_REPLACEMENT; 3969 return ON_STACK_REPLACEMENT;
3971 } 3970 }
3972 } // namespace internal 3971 } // namespace internal
3973 } // namespace v8 3972 } // namespace v8
3974 #endif // V8_TARGET_ARCH_PPC 3973 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698