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

Side by Side Diff: src/mips/lithium-codegen-mips.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/mips/full-codegen-mips.cc ('k') | src/mips/macro-assembler-mips.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 2979 matching lines...) Expand 10 before | Expand all | Expand 10 after
2990 __ LoadHeapObject(scratch0(), instr->hydrogen()->pairs()); 2990 __ LoadHeapObject(scratch0(), instr->hydrogen()->pairs());
2991 __ li(scratch1(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); 2991 __ li(scratch1(), Operand(Smi::FromInt(instr->hydrogen()->flags())));
2992 // The context is the first argument. 2992 // The context is the first argument.
2993 __ Push(cp, scratch0(), scratch1()); 2993 __ Push(cp, scratch0(), scratch1());
2994 CallRuntime(Runtime::kDeclareGlobals, 3, instr); 2994 CallRuntime(Runtime::kDeclareGlobals, 3, instr);
2995 } 2995 }
2996 2996
2997 2997
2998 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { 2998 void LCodeGen::DoGlobalObject(LGlobalObject* instr) {
2999 Register result = ToRegister(instr->result()); 2999 Register result = ToRegister(instr->result());
3000 __ lw(result, ContextOperand(cp, Context::GLOBAL_INDEX)); 3000 __ lw(result, ContextOperand(cp, Context::GLOBAL_OBJECT_INDEX));
3001 } 3001 }
3002 3002
3003 3003
3004 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) { 3004 void LCodeGen::DoGlobalReceiver(LGlobalReceiver* instr) {
3005 Register global = ToRegister(instr->global()); 3005 Register global = ToRegister(instr->global());
3006 Register result = ToRegister(instr->result()); 3006 Register result = ToRegister(instr->result());
3007 __ lw(result, FieldMemOperand(global, GlobalObject::kGlobalReceiverOffset)); 3007 __ lw(result, FieldMemOperand(global, GlobalObject::kGlobalReceiverOffset));
3008 } 3008 }
3009 3009
3010 3010
(...skipping 2319 matching lines...) Expand 10 before | Expand all | Expand 10 after
5330 __ Subu(scratch, result, scratch); 5330 __ Subu(scratch, result, scratch);
5331 __ lw(result, FieldMemOperand(scratch, 5331 __ lw(result, FieldMemOperand(scratch,
5332 FixedArray::kHeaderSize - kPointerSize)); 5332 FixedArray::kHeaderSize - kPointerSize));
5333 __ bind(&done); 5333 __ bind(&done);
5334 } 5334 }
5335 5335
5336 5336
5337 #undef __ 5337 #undef __
5338 5338
5339 } } // namespace v8::internal 5339 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698