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

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

Issue 7086029: Fix a number of IC stubs to correctly set the call kind. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Load global object from rsi on x64. Created 9 years, 6 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/arm/code-stubs-arm.cc ('k') | src/arm/ic-arm.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 3157 matching lines...) Expand 10 before | Expand all | Expand 10 after
3168 3168
3169 int arg_count = args->length() - 2; // 2 ~ receiver and function. 3169 int arg_count = args->length() - 2; // 2 ~ receiver and function.
3170 for (int i = 0; i < arg_count + 1; i++) { 3170 for (int i = 0; i < arg_count + 1; i++) {
3171 VisitForStackValue(args->at(i)); 3171 VisitForStackValue(args->at(i));
3172 } 3172 }
3173 VisitForAccumulatorValue(args->last()); // Function. 3173 VisitForAccumulatorValue(args->last()); // Function.
3174 3174
3175 // InvokeFunction requires the function in r1. Move it in there. 3175 // InvokeFunction requires the function in r1. Move it in there.
3176 __ mov(r1, result_register()); 3176 __ mov(r1, result_register());
3177 ParameterCount count(arg_count); 3177 ParameterCount count(arg_count);
3178 __ InvokeFunction(r1, count, CALL_FUNCTION); 3178 __ InvokeFunction(r1, count, CALL_FUNCTION,
3179 NullCallWrapper(), CALL_AS_METHOD);
3179 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 3180 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
3180 context()->Plug(r0); 3181 context()->Plug(r0);
3181 } 3182 }
3182 3183
3183 3184
3184 void FullCodeGenerator::EmitRegExpConstructResult(ZoneList<Expression*>* args) { 3185 void FullCodeGenerator::EmitRegExpConstructResult(ZoneList<Expression*>* args) {
3185 RegExpConstructResultStub stub; 3186 RegExpConstructResultStub stub;
3186 ASSERT(args->length() == 3); 3187 ASSERT(args->length() == 3);
3187 VisitForStackValue(args->at(0)); 3188 VisitForStackValue(args->at(0));
3188 VisitForStackValue(args->at(1)); 3189 VisitForStackValue(args->at(1));
(...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
4366 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 4367 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
4367 __ add(pc, r1, Operand(masm_->CodeObject())); 4368 __ add(pc, r1, Operand(masm_->CodeObject()));
4368 } 4369 }
4369 4370
4370 4371
4371 #undef __ 4372 #undef __
4372 4373
4373 } } // namespace v8::internal 4374 } } // namespace v8::internal
4374 4375
4375 #endif // V8_TARGET_ARCH_ARM 4376 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/ic-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698