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

Side by Side Diff: src/x64/lithium-codegen-x64.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/x64/full-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.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 2832 matching lines...) Expand 10 before | Expand all | Expand 10 after
2843 Condition is_smi = __ CheckSmi(receiver); 2843 Condition is_smi = __ CheckSmi(receiver);
2844 DeoptimizeIf(is_smi, instr->environment()); 2844 DeoptimizeIf(is_smi, instr->environment());
2845 __ CmpObjectType(receiver, FIRST_SPEC_OBJECT_TYPE, kScratchRegister); 2845 __ CmpObjectType(receiver, FIRST_SPEC_OBJECT_TYPE, kScratchRegister);
2846 DeoptimizeIf(below, instr->environment()); 2846 DeoptimizeIf(below, instr->environment());
2847 __ jmp(&receiver_ok, Label::kNear); 2847 __ jmp(&receiver_ok, Label::kNear);
2848 2848
2849 __ bind(&global_object); 2849 __ bind(&global_object);
2850 // TODO(kmillikin): We have a hydrogen value for the global object. See 2850 // TODO(kmillikin): We have a hydrogen value for the global object. See
2851 // if it's better to use it than to explicitly fetch it from the context 2851 // if it's better to use it than to explicitly fetch it from the context
2852 // here. 2852 // here.
2853 __ movq(receiver, ContextOperand(rsi, Context::GLOBAL_INDEX)); 2853 __ movq(receiver, ContextOperand(rsi, Context::GLOBAL_OBJECT_INDEX));
2854 __ movq(receiver, 2854 __ movq(receiver,
2855 FieldOperand(receiver, JSGlobalObject::kGlobalReceiverOffset)); 2855 FieldOperand(receiver, JSGlobalObject::kGlobalReceiverOffset));
2856 __ bind(&receiver_ok); 2856 __ bind(&receiver_ok);
2857 } 2857 }
2858 2858
2859 2859
2860 void LCodeGen::DoApplyArguments(LApplyArguments* instr) { 2860 void LCodeGen::DoApplyArguments(LApplyArguments* instr) {
2861 Register receiver = ToRegister(instr->receiver()); 2861 Register receiver = ToRegister(instr->receiver());
2862 Register function = ToRegister(instr->function()); 2862 Register function = ToRegister(instr->function());
2863 Register length = ToRegister(instr->length()); 2863 Register length = ToRegister(instr->length());
(...skipping 2300 matching lines...) Expand 10 before | Expand all | Expand 10 after
5164 FixedArray::kHeaderSize - kPointerSize)); 5164 FixedArray::kHeaderSize - kPointerSize));
5165 __ bind(&done); 5165 __ bind(&done);
5166 } 5166 }
5167 5167
5168 5168
5169 #undef __ 5169 #undef __
5170 5170
5171 } } // namespace v8::internal 5171 } } // namespace v8::internal
5172 5172
5173 #endif // V8_TARGET_ARCH_X64 5173 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698