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

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

Issue 6804024: Strict mode renamings. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-codegen-ia32.h ('k') | src/x64/lithium-codegen-x64.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2953 matching lines...) Expand 10 before | Expand all | Expand 10 after
2964 } 2964 }
2965 } 2965 }
2966 2966
2967 2967
2968 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { 2968 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) {
2969 ASSERT(ToRegister(instr->context()).is(esi)); 2969 ASSERT(ToRegister(instr->context()).is(esi));
2970 ASSERT(ToRegister(instr->object()).is(edx)); 2970 ASSERT(ToRegister(instr->object()).is(edx));
2971 ASSERT(ToRegister(instr->value()).is(eax)); 2971 ASSERT(ToRegister(instr->value()).is(eax));
2972 2972
2973 __ mov(ecx, instr->name()); 2973 __ mov(ecx, instr->name());
2974 Handle<Code> ic = info_->is_strict() 2974 Handle<Code> ic = info_->is_strict_mode()
2975 ? isolate()->builtins()->StoreIC_Initialize_Strict() 2975 ? isolate()->builtins()->StoreIC_Initialize_Strict()
2976 : isolate()->builtins()->StoreIC_Initialize(); 2976 : isolate()->builtins()->StoreIC_Initialize();
2977 CallCode(ic, RelocInfo::CODE_TARGET, instr); 2977 CallCode(ic, RelocInfo::CODE_TARGET, instr);
2978 } 2978 }
2979 2979
2980 2980
2981 void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) { 2981 void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) {
2982 __ cmp(ToRegister(instr->index()), ToOperand(instr->length())); 2982 __ cmp(ToRegister(instr->index()), ToOperand(instr->length()));
2983 DeoptimizeIf(above_equal, instr->environment()); 2983 DeoptimizeIf(above_equal, instr->environment());
2984 } 2984 }
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
3064 } 3064 }
3065 } 3065 }
3066 3066
3067 3067
3068 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { 3068 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) {
3069 ASSERT(ToRegister(instr->context()).is(esi)); 3069 ASSERT(ToRegister(instr->context()).is(esi));
3070 ASSERT(ToRegister(instr->object()).is(edx)); 3070 ASSERT(ToRegister(instr->object()).is(edx));
3071 ASSERT(ToRegister(instr->key()).is(ecx)); 3071 ASSERT(ToRegister(instr->key()).is(ecx));
3072 ASSERT(ToRegister(instr->value()).is(eax)); 3072 ASSERT(ToRegister(instr->value()).is(eax));
3073 3073
3074 Handle<Code> ic = info_->is_strict() 3074 Handle<Code> ic = info_->is_strict_mode()
3075 ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() 3075 ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict()
3076 : isolate()->builtins()->KeyedStoreIC_Initialize(); 3076 : isolate()->builtins()->KeyedStoreIC_Initialize();
3077 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3077 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3078 } 3078 }
3079 3079
3080 3080
3081 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) { 3081 void LCodeGen::DoStringCharCodeAt(LStringCharCodeAt* instr) {
3082 class DeferredStringCharCodeAt: public LDeferredCode { 3082 class DeferredStringCharCodeAt: public LDeferredCode {
3083 public: 3083 public:
3084 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr) 3084 DeferredStringCharCodeAt(LCodeGen* codegen, LStringCharCodeAt* instr)
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after
4149 ASSERT(osr_pc_offset_ == -1); 4149 ASSERT(osr_pc_offset_ == -1);
4150 osr_pc_offset_ = masm()->pc_offset(); 4150 osr_pc_offset_ = masm()->pc_offset();
4151 } 4151 }
4152 4152
4153 4153
4154 #undef __ 4154 #undef __
4155 4155
4156 } } // namespace v8::internal 4156 } } // namespace v8::internal
4157 4157
4158 #endif // V8_TARGET_ARCH_IA32 4158 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698