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

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 10878047: Revert to code state of 3.13.1 plus r12350 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 : Translation::kSelfLiteralId; 487 : Translation::kSelfLiteralId;
488 488
489 switch (environment->frame_type()) { 489 switch (environment->frame_type()) {
490 case JS_FUNCTION: 490 case JS_FUNCTION:
491 translation->BeginJSFrame(environment->ast_id(), closure_id, height); 491 translation->BeginJSFrame(environment->ast_id(), closure_id, height);
492 break; 492 break;
493 case JS_CONSTRUCT: 493 case JS_CONSTRUCT:
494 translation->BeginConstructStubFrame(closure_id, translation_size); 494 translation->BeginConstructStubFrame(closure_id, translation_size);
495 break; 495 break;
496 case JS_SETTER: 496 case JS_SETTER:
497 ASSERT(translation_size == 2); 497 // TODO(svenpanne) Implement me!
498 ASSERT(height == 0);
499 translation->BeginSetterStubFrame(closure_id);
500 break; 498 break;
501 case ARGUMENTS_ADAPTOR: 499 case ARGUMENTS_ADAPTOR:
502 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size); 500 translation->BeginArgumentsAdaptorFrame(closure_id, translation_size);
503 break; 501 break;
504 } 502 }
505 for (int i = 0; i < translation_size; ++i) { 503 for (int i = 0; i < translation_size; ++i) {
506 LOperand* value = environment->values()->at(i); 504 LOperand* value = environment->values()->at(i);
507 // spilled_registers_ and spilled_double_registers_ are either 505 // spilled_registers_ and spilled_double_registers_ are either
508 // both NULL or both set. 506 // both NULL or both set.
509 if (environment->spilled_registers() != NULL && value != NULL) { 507 if (environment->spilled_registers() != NULL && value != NULL) {
(...skipping 2725 matching lines...) Expand 10 before | Expand all | Expand 10 after
3235 __ LoadHeapObject(scratch0(), instr->hydrogen()->pairs()); 3233 __ LoadHeapObject(scratch0(), instr->hydrogen()->pairs());
3236 __ push(scratch0()); 3234 __ push(scratch0());
3237 __ mov(scratch0(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); 3235 __ mov(scratch0(), Operand(Smi::FromInt(instr->hydrogen()->flags())));
3238 __ push(scratch0()); 3236 __ push(scratch0());
3239 CallRuntime(Runtime::kDeclareGlobals, 3, instr); 3237 CallRuntime(Runtime::kDeclareGlobals, 3, instr);
3240 } 3238 }
3241 3239
3242 3240
3243 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { 3241 void LCodeGen::DoGlobalObject(LGlobalObject* instr) {
3244 Register result = ToRegister(instr->result()); 3242 Register result = ToRegister(instr->result());
3245 __ ldr(result, ContextOperand(cp, Context::GLOBAL_OBJECT_INDEX)); 3243 __ ldr(result, ContextOperand(cp, Context::GLOBAL_INDEX));
3246 } 3244 }
3247 3245
3248 3246
3249 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) { 3247 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) {
3250 Register global = ToRegister(instr->global()); 3248 Register global = ToRegister(instr->global());
3251 Register result = ToRegister(instr->result()); 3249 Register result = ToRegister(instr->result());
3252 __ ldr(result, FieldMemOperand(global, GlobalObject::kGlobalReceiverOffset)); 3250 __ ldr(result, FieldMemOperand(global, GlobalObject::kGlobalReceiverOffset));
3253 } 3251 }
3254 3252
3255 3253
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
3591 DeferredDoRandom* deferred = new(zone()) DeferredDoRandom(this, instr); 3589 DeferredDoRandom* deferred = new(zone()) DeferredDoRandom(this, instr);
3592 3590
3593 // Having marked this instruction as a call we can use any 3591 // Having marked this instruction as a call we can use any
3594 // registers. 3592 // registers.
3595 ASSERT(ToDoubleRegister(instr->result()).is(d7)); 3593 ASSERT(ToDoubleRegister(instr->result()).is(d7));
3596 ASSERT(ToRegister(instr->InputAt(0)).is(r0)); 3594 ASSERT(ToRegister(instr->InputAt(0)).is(r0));
3597 3595
3598 static const int kSeedSize = sizeof(uint32_t); 3596 static const int kSeedSize = sizeof(uint32_t);
3599 STATIC_ASSERT(kPointerSize == kSeedSize); 3597 STATIC_ASSERT(kPointerSize == kSeedSize);
3600 3598
3601 __ ldr(r0, FieldMemOperand(r0, GlobalObject::kNativeContextOffset)); 3599 __ ldr(r0, FieldMemOperand(r0, GlobalObject::kGlobalContextOffset));
3602 static const int kRandomSeedOffset = 3600 static const int kRandomSeedOffset =
3603 FixedArray::kHeaderSize + Context::RANDOM_SEED_INDEX * kPointerSize; 3601 FixedArray::kHeaderSize + Context::RANDOM_SEED_INDEX * kPointerSize;
3604 __ ldr(r2, FieldMemOperand(r0, kRandomSeedOffset)); 3602 __ ldr(r2, FieldMemOperand(r0, kRandomSeedOffset));
3605 // r2: FixedArray of the native context's random seeds 3603 // r2: FixedArray of the global context's random seeds
3606 3604
3607 // Load state[0]. 3605 // Load state[0].
3608 __ ldr(r1, FieldMemOperand(r2, ByteArray::kHeaderSize)); 3606 __ ldr(r1, FieldMemOperand(r2, ByteArray::kHeaderSize));
3609 __ cmp(r1, Operand(0)); 3607 __ cmp(r1, Operand(0));
3610 __ b(eq, deferred->entry()); 3608 __ b(eq, deferred->entry());
3611 // Load state[1]. 3609 // Load state[1].
3612 __ ldr(r0, FieldMemOperand(r2, ByteArray::kHeaderSize + kSeedSize)); 3610 __ ldr(r0, FieldMemOperand(r2, ByteArray::kHeaderSize + kSeedSize));
3613 // r1: state[0]. 3611 // r1: state[0].
3614 // r0: state[1]. 3612 // r0: state[1].
3615 3613
(...skipping 1913 matching lines...) Expand 10 before | Expand all | Expand 10 after
5529 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5527 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5530 __ ldr(result, FieldMemOperand(scratch, 5528 __ ldr(result, FieldMemOperand(scratch,
5531 FixedArray::kHeaderSize - kPointerSize)); 5529 FixedArray::kHeaderSize - kPointerSize));
5532 __ bind(&done); 5530 __ bind(&done);
5533 } 5531 }
5534 5532
5535 5533
5536 #undef __ 5534 #undef __
5537 5535
5538 } } // namespace v8::internal 5536 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698