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

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

Issue 10832365: Rename Context::global to Context::global_object, (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Michael's comments. 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 3224 matching lines...) Expand 10 before | Expand all | Expand 10 after
3235 __ LoadHeapObject(scratch0(), instr->hydrogen()->pairs()); 3235 __ LoadHeapObject(scratch0(), instr->hydrogen()->pairs());
3236 __ push(scratch0()); 3236 __ push(scratch0());
3237 __ mov(scratch0(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); 3237 __ mov(scratch0(), Operand(Smi::FromInt(instr->hydrogen()->flags())));
3238 __ push(scratch0()); 3238 __ push(scratch0());
3239 CallRuntime(Runtime::kDeclareGlobals, 3, instr); 3239 CallRuntime(Runtime::kDeclareGlobals, 3, instr);
3240 } 3240 }
3241 3241
3242 3242
3243 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { 3243 void LCodeGen::DoGlobalObject(LGlobalObject* instr) {
3244 Register result = ToRegister(instr->result()); 3244 Register result = ToRegister(instr->result());
3245 __ ldr(result, ContextOperand(cp, Context::GLOBAL_INDEX)); 3245 __ ldr(result, ContextOperand(cp, Context::GLOBAL_OBJECT_INDEX));
3246 } 3246 }
3247 3247
3248 3248
3249 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) { 3249 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) {
3250 Register global = ToRegister(instr->global()); 3250 Register global = ToRegister(instr->global());
3251 Register result = ToRegister(instr->result()); 3251 Register result = ToRegister(instr->result());
3252 __ ldr(result, FieldMemOperand(global, GlobalObject::kGlobalReceiverOffset)); 3252 __ ldr(result, FieldMemOperand(global, GlobalObject::kGlobalReceiverOffset));
3253 } 3253 }
3254 3254
3255 3255
(...skipping 2273 matching lines...) Expand 10 before | Expand all | Expand 10 after
5529 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5529 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5530 __ ldr(result, FieldMemOperand(scratch, 5530 __ ldr(result, FieldMemOperand(scratch,
5531 FixedArray::kHeaderSize - kPointerSize)); 5531 FixedArray::kHeaderSize - kPointerSize));
5532 __ bind(&done); 5532 __ bind(&done);
5533 } 5533 }
5534 5534
5535 5535
5536 #undef __ 5536 #undef __
5537 5537
5538 } } // namespace v8::internal 5538 } } // 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