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

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

Issue 139973004: A64: Synchronize with r15814. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/a64/codegen-a64.cc ('k') | src/a64/ic-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 3453 matching lines...) Expand 10 before | Expand all | Expand 10 after
3464 } 3464 }
3465 3465
3466 3466
3467 void FullCodeGenerator::EmitStringAdd(CallRuntime* expr) { 3467 void FullCodeGenerator::EmitStringAdd(CallRuntime* expr) {
3468 ASM_LOCATION("FullCodeGenerator::EmitStringAdd"); 3468 ASM_LOCATION("FullCodeGenerator::EmitStringAdd");
3469 ZoneList<Expression*>* args = expr->arguments(); 3469 ZoneList<Expression*>* args = expr->arguments();
3470 ASSERT_EQ(2, args->length()); 3470 ASSERT_EQ(2, args->length());
3471 VisitForStackValue(args->at(0)); 3471 VisitForStackValue(args->at(0));
3472 VisitForStackValue(args->at(1)); 3472 VisitForStackValue(args->at(1));
3473 3473
3474 StringAddStub stub(NO_STRING_ADD_FLAGS); 3474 StringAddStub stub(STRING_ADD_CHECK_BOTH);
3475 __ CallStub(&stub); 3475 __ CallStub(&stub);
3476 context()->Plug(x0); 3476 context()->Plug(x0);
3477 } 3477 }
3478 3478
3479 3479
3480 void FullCodeGenerator::EmitStringCompare(CallRuntime* expr) { 3480 void FullCodeGenerator::EmitStringCompare(CallRuntime* expr) {
3481 ZoneList<Expression*>* args = expr->arguments(); 3481 ZoneList<Expression*>* args = expr->arguments();
3482 ASSERT_EQ(2, args->length()); 3482 ASSERT_EQ(2, args->length());
3483 VisitForStackValue(args->at(0)); 3483 VisitForStackValue(args->at(0));
3484 VisitForStackValue(args->at(1)); 3484 VisitForStackValue(args->at(1));
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
4164 // We need a second deoptimization point after loading the value 4164 // We need a second deoptimization point after loading the value
4165 // in case evaluating the property load my have a side effect. 4165 // in case evaluating the property load my have a side effect.
4166 if (assign_type == VARIABLE) { 4166 if (assign_type == VARIABLE) {
4167 PrepareForBailout(expr->expression(), TOS_REG); 4167 PrepareForBailout(expr->expression(), TOS_REG);
4168 } else { 4168 } else {
4169 PrepareForBailoutForId(prop->LoadId(), TOS_REG); 4169 PrepareForBailoutForId(prop->LoadId(), TOS_REG);
4170 } 4170 }
4171 4171
4172 // Call ToNumber only if operand is not a smi. 4172 // Call ToNumber only if operand is not a smi.
4173 Label no_conversion; 4173 Label no_conversion;
4174 __ JumpIfSmi(x0, &no_conversion); 4174 if (ShouldInlineSmiCase(expr->op())) {
4175 __ JumpIfSmi(x0, &no_conversion);
4176 }
4175 ToNumberStub convert_stub; 4177 ToNumberStub convert_stub;
4176 __ CallStub(&convert_stub); 4178 __ CallStub(&convert_stub);
4177 __ Bind(&no_conversion); 4179 __ Bind(&no_conversion);
4178 4180
4179 // Save result for postfix expressions. 4181 // Save result for postfix expressions.
4180 if (expr->is_postfix()) { 4182 if (expr->is_postfix()) {
4181 if (!context()->IsEffect()) { 4183 if (!context()->IsEffect()) {
4182 // Save the result on the stack. If we have a named or keyed property 4184 // Save the result on the stack. If we have a named or keyed property
4183 // we store the result under the receiver that is currently on top 4185 // we store the result under the receiver that is currently on top
4184 // of the stack. 4186 // of the stack.
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
4992 return previous_; 4994 return previous_;
4993 } 4995 }
4994 4996
4995 4997
4996 #undef __ 4998 #undef __
4997 4999
4998 5000
4999 } } // namespace v8::internal 5001 } } // namespace v8::internal
5000 5002
5001 #endif // V8_TARGET_ARCH_A64 5003 #endif // V8_TARGET_ARCH_A64
OLDNEW
« no previous file with comments | « src/a64/codegen-a64.cc ('k') | src/a64/ic-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698