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

Side by Side Diff: src/ic/mips/ic-compiler-mips.cc

Issue 890413003: MIPS: Introduce LanguageMode, drop StrictMode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « src/compiler/mips64/code-generator-mips64.cc ('k') | src/ic/mips/ic-mips.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/ic/ic.h" 9 #include "src/ic/ic.h"
10 #include "src/ic/ic-compiler.h" 10 #include "src/ic/ic-compiler.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 // Return the generated code. 115 // Return the generated code.
116 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC); 116 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC);
117 } 117 }
118 118
119 119
120 #undef __ 120 #undef __
121 #define __ ACCESS_MASM(masm) 121 #define __ ACCESS_MASM(masm)
122 122
123 123
124 void PropertyICCompiler::GenerateRuntimeSetProperty(MacroAssembler* masm, 124 void PropertyICCompiler::GenerateRuntimeSetProperty(
125 StrictMode strict_mode) { 125 MacroAssembler* masm, LanguageMode language_mode) {
126 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), 126 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(),
127 StoreDescriptor::ValueRegister()); 127 StoreDescriptor::ValueRegister());
128 128
129 __ li(a0, Operand(Smi::FromInt(strict_mode))); 129 __ li(a0, Operand(Smi::FromInt(language_mode)));
130 __ Push(a0); 130 __ Push(a0);
131 131
132 // Do tail-call to runtime routine. 132 // Do tail-call to runtime routine.
133 __ TailCallRuntime(Runtime::kSetProperty, 4, 1); 133 __ TailCallRuntime(Runtime::kSetProperty, 4, 1);
134 } 134 }
135 135
136 136
137 #undef __ 137 #undef __
138 } 138 }
139 } // namespace v8::internal 139 } // namespace v8::internal
140 140
141 #endif // V8_TARGET_ARCH_MIPS 141 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/compiler/mips64/code-generator-mips64.cc ('k') | src/ic/mips/ic-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698