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

Side by Side Diff: src/mips/full-codegen-mips.cc

Issue 565093002: Reland "Change the order of arguments of the (One|Two)ByteSeqStringSetChar intrinsic." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix typo Created 6 years, 3 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/full-codegen-ia32.cc ('k') | src/mips64/full-codegen-mips64.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 #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 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 3417 matching lines...) Expand 10 before | Expand all | Expand 10 after
3428 3428
3429 3429
3430 void FullCodeGenerator::EmitOneByteSeqStringSetChar(CallRuntime* expr) { 3430 void FullCodeGenerator::EmitOneByteSeqStringSetChar(CallRuntime* expr) {
3431 ZoneList<Expression*>* args = expr->arguments(); 3431 ZoneList<Expression*>* args = expr->arguments();
3432 DCHECK_EQ(3, args->length()); 3432 DCHECK_EQ(3, args->length());
3433 3433
3434 Register string = v0; 3434 Register string = v0;
3435 Register index = a1; 3435 Register index = a1;
3436 Register value = a2; 3436 Register value = a2;
3437 3437
3438 VisitForStackValue(args->at(1)); // index 3438 VisitForStackValue(args->at(0)); // index
3439 VisitForStackValue(args->at(2)); // value 3439 VisitForStackValue(args->at(1)); // value
3440 VisitForAccumulatorValue(args->at(0)); // string 3440 VisitForAccumulatorValue(args->at(2)); // string
3441 __ Pop(index, value); 3441 __ Pop(index, value);
3442 3442
3443 if (FLAG_debug_code) { 3443 if (FLAG_debug_code) {
3444 __ SmiTst(value, at); 3444 __ SmiTst(value, at);
3445 __ Check(eq, kNonSmiValue, at, Operand(zero_reg)); 3445 __ Check(eq, kNonSmiValue, at, Operand(zero_reg));
3446 __ SmiTst(index, at); 3446 __ SmiTst(index, at);
3447 __ Check(eq, kNonSmiIndex, at, Operand(zero_reg)); 3447 __ Check(eq, kNonSmiIndex, at, Operand(zero_reg));
3448 __ SmiUntag(index, index); 3448 __ SmiUntag(index, index);
3449 static const uint32_t one_byte_seq_type = kSeqStringTag | kOneByteStringTag; 3449 static const uint32_t one_byte_seq_type = kSeqStringTag | kOneByteStringTag;
3450 Register scratch = t5; 3450 Register scratch = t5;
(...skipping 14 matching lines...) Expand all
3465 3465
3466 3466
3467 void FullCodeGenerator::EmitTwoByteSeqStringSetChar(CallRuntime* expr) { 3467 void FullCodeGenerator::EmitTwoByteSeqStringSetChar(CallRuntime* expr) {
3468 ZoneList<Expression*>* args = expr->arguments(); 3468 ZoneList<Expression*>* args = expr->arguments();
3469 DCHECK_EQ(3, args->length()); 3469 DCHECK_EQ(3, args->length());
3470 3470
3471 Register string = v0; 3471 Register string = v0;
3472 Register index = a1; 3472 Register index = a1;
3473 Register value = a2; 3473 Register value = a2;
3474 3474
3475 VisitForStackValue(args->at(1)); // index 3475 VisitForStackValue(args->at(0)); // index
3476 VisitForStackValue(args->at(2)); // value 3476 VisitForStackValue(args->at(1)); // value
3477 VisitForAccumulatorValue(args->at(0)); // string 3477 VisitForAccumulatorValue(args->at(2)); // string
3478 __ Pop(index, value); 3478 __ Pop(index, value);
3479 3479
3480 if (FLAG_debug_code) { 3480 if (FLAG_debug_code) {
3481 __ SmiTst(value, at); 3481 __ SmiTst(value, at);
3482 __ Check(eq, kNonSmiValue, at, Operand(zero_reg)); 3482 __ Check(eq, kNonSmiValue, at, Operand(zero_reg));
3483 __ SmiTst(index, at); 3483 __ SmiTst(index, at);
3484 __ Check(eq, kNonSmiIndex, at, Operand(zero_reg)); 3484 __ Check(eq, kNonSmiIndex, at, Operand(zero_reg));
3485 __ SmiUntag(index, index); 3485 __ SmiUntag(index, index);
3486 static const uint32_t two_byte_seq_type = kSeqStringTag | kTwoByteStringTag; 3486 static const uint32_t two_byte_seq_type = kSeqStringTag | kTwoByteStringTag;
3487 Register scratch = t5; 3487 Register scratch = t5;
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after
4872 Assembler::target_address_at(pc_immediate_load_address)) == 4872 Assembler::target_address_at(pc_immediate_load_address)) ==
4873 reinterpret_cast<uint32_t>( 4873 reinterpret_cast<uint32_t>(
4874 isolate->builtins()->OsrAfterStackCheck()->entry())); 4874 isolate->builtins()->OsrAfterStackCheck()->entry()));
4875 return OSR_AFTER_STACK_CHECK; 4875 return OSR_AFTER_STACK_CHECK;
4876 } 4876 }
4877 4877
4878 4878
4879 } } // namespace v8::internal 4879 } } // namespace v8::internal
4880 4880
4881 #endif // V8_TARGET_ARCH_MIPS 4881 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698