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

Side by Side Diff: src/x64/full-codegen-x64.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/x64/code-stubs-x64.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 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 3049 matching lines...) Expand 10 before | Expand all | Expand 10 after
3060 3060
3061 int arg_count = args->length() - 2; // 2 ~ receiver and function. 3061 int arg_count = args->length() - 2; // 2 ~ receiver and function.
3062 for (int i = 0; i < arg_count + 1; i++) { 3062 for (int i = 0; i < arg_count + 1; i++) {
3063 VisitForStackValue(args->at(i)); 3063 VisitForStackValue(args->at(i));
3064 } 3064 }
3065 VisitForAccumulatorValue(args->last()); // Function. 3065 VisitForAccumulatorValue(args->last()); // Function.
3066 3066
3067 // InvokeFunction requires the function in rdi. Move it in there. 3067 // InvokeFunction requires the function in rdi. Move it in there.
3068 __ movq(rdi, result_register()); 3068 __ movq(rdi, result_register());
3069 ParameterCount count(arg_count); 3069 ParameterCount count(arg_count);
3070 __ InvokeFunction(rdi, count, CALL_FUNCTION); 3070 __ InvokeFunction(rdi, count, CALL_FUNCTION,
3071 NullCallWrapper(), CALL_AS_METHOD);
3071 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); 3072 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
3072 context()->Plug(rax); 3073 context()->Plug(rax);
3073 } 3074 }
3074 3075
3075 3076
3076 void FullCodeGenerator::EmitRegExpConstructResult(ZoneList<Expression*>* args) { 3077 void FullCodeGenerator::EmitRegExpConstructResult(ZoneList<Expression*>* args) {
3077 RegExpConstructResultStub stub; 3078 RegExpConstructResultStub stub;
3078 ASSERT(args->length() == 3); 3079 ASSERT(args->length() == 3);
3079 VisitForStackValue(args->at(0)); 3080 VisitForStackValue(args->at(0));
3080 VisitForStackValue(args->at(1)); 3081 VisitForStackValue(args->at(1));
(...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
4309 __ ret(0); 4310 __ ret(0);
4310 } 4311 }
4311 4312
4312 4313
4313 #undef __ 4314 #undef __
4314 4315
4315 4316
4316 } } // namespace v8::internal 4317 } } // namespace v8::internal
4317 4318
4318 #endif // V8_TARGET_ARCH_X64 4319 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698