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

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

Issue 354173002: Port the ic part (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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/arm64/ic-arm64.cc ('k') | src/x64/ic-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 5
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 StrictMode strict_mode) { 788 StrictMode strict_mode) {
789 // ---------- S t a t e -------------- 789 // ---------- S t a t e --------------
790 // -- a0 : value 790 // -- a0 : value
791 // -- a1 : key 791 // -- a1 : key
792 // -- a2 : receiver 792 // -- a2 : receiver
793 // -- ra : return address 793 // -- ra : return address
794 // ----------------------------------- 794 // -----------------------------------
795 795
796 // Push receiver, key and value for runtime call. 796 // Push receiver, key and value for runtime call.
797 __ Push(a2, a1, a0); 797 __ Push(a2, a1, a0);
798 __ li(a1, Operand(Smi::FromInt(NONE))); // PropertyAttributes.
799 __ li(a0, Operand(Smi::FromInt(strict_mode))); // Strict mode. 798 __ li(a0, Operand(Smi::FromInt(strict_mode))); // Strict mode.
800 __ Push(a1, a0); 799 __ Push(a0);
801 800
802 __ TailCallRuntime(Runtime::kSetProperty, 5, 1); 801 __ TailCallRuntime(Runtime::kSetProperty, 4, 1);
803 } 802 }
804 803
805 804
806 static void KeyedStoreGenerateGenericHelper( 805 static void KeyedStoreGenerateGenericHelper(
807 MacroAssembler* masm, 806 MacroAssembler* masm,
808 Label* fast_object, 807 Label* fast_object,
809 Label* fast_double, 808 Label* fast_double,
810 Label* slow, 809 Label* slow,
811 KeyedStoreCheckMap check_map, 810 KeyedStoreCheckMap check_map,
812 KeyedStoreIncrementLength increment_length, 811 KeyedStoreIncrementLength increment_length,
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 StrictMode strict_mode) { 1225 StrictMode strict_mode) {
1227 // ----------- S t a t e ------------- 1226 // ----------- S t a t e -------------
1228 // -- a0 : value 1227 // -- a0 : value
1229 // -- a1 : receiver 1228 // -- a1 : receiver
1230 // -- a2 : name 1229 // -- a2 : name
1231 // -- ra : return address 1230 // -- ra : return address
1232 // ----------------------------------- 1231 // -----------------------------------
1233 1232
1234 __ Push(a1, a2, a0); 1233 __ Push(a1, a2, a0);
1235 1234
1236 __ li(a1, Operand(Smi::FromInt(NONE))); // PropertyAttributes.
1237 __ li(a0, Operand(Smi::FromInt(strict_mode))); 1235 __ li(a0, Operand(Smi::FromInt(strict_mode)));
1238 __ Push(a1, a0); 1236 __ Push(a0);
1239 1237
1240 // Do tail-call to runtime routine. 1238 // Do tail-call to runtime routine.
1241 __ TailCallRuntime(Runtime::kSetProperty, 5, 1); 1239 __ TailCallRuntime(Runtime::kSetProperty, 4, 1);
1242 } 1240 }
1243 1241
1244 1242
1245 #undef __ 1243 #undef __
1246 1244
1247 1245
1248 Condition CompareIC::ComputeCondition(Token::Value op) { 1246 Condition CompareIC::ComputeCondition(Token::Value op) {
1249 switch (op) { 1247 switch (op) {
1250 case Token::EQ_STRICT: 1248 case Token::EQ_STRICT:
1251 case Token::EQ: 1249 case Token::EQ:
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
1335 } else { 1333 } else {
1336 ASSERT(Assembler::IsBne(branch_instr)); 1334 ASSERT(Assembler::IsBne(branch_instr));
1337 patcher.ChangeBranchCondition(eq); 1335 patcher.ChangeBranchCondition(eq);
1338 } 1336 }
1339 } 1337 }
1340 1338
1341 1339
1342 } } // namespace v8::internal 1340 } } // namespace v8::internal
1343 1341
1344 #endif // V8_TARGET_ARCH_MIPS 1342 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/arm64/ic-arm64.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698