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

Side by Side Diff: src/interface-descriptors.cc

Issue 1325573004: [runtime] Replace many buggy uses of %_CallFunction with %_Call. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address feedback. Created 5 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
« no previous file with comments | « src/interface-descriptors.h ('k') | src/json.js » ('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/interface-descriptors.h" 5 #include "src/interface-descriptors.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 9
10 namespace { 10 namespace {
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 Type::FunctionType* function = 348 Type::FunctionType* function =
349 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 3, zone); 349 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 3, zone);
350 function->InitParameter(0, AnyTagged(zone)); 350 function->InitParameter(0, AnyTagged(zone));
351 function->InitParameter(1, SmiType(zone)); 351 function->InitParameter(1, SmiType(zone));
352 function->InitParameter(2, AnyTagged(zone)); 352 function->InitParameter(2, AnyTagged(zone));
353 return function; 353 return function;
354 } 354 }
355 355
356 356
357 Type::FunctionType* 357 Type::FunctionType*
358 CallTrampolineDescriptor::BuildCallInterfaceDescriptorFunctionType(
359 Isolate* isolate, int paramater_count) {
360 Zone* zone = isolate->interface_descriptor_zone();
361 Type::FunctionType* function =
362 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 2, zone);
363 function->InitParameter(0, AnyTagged(zone)); // target
364 function->InitParameter(
365 1, UntaggedSigned32(zone)); // actual number of arguments
366 return function;
367 }
368
369
370 Type::FunctionType*
358 CallFunctionWithFeedbackDescriptor::BuildCallInterfaceDescriptorFunctionType( 371 CallFunctionWithFeedbackDescriptor::BuildCallInterfaceDescriptorFunctionType(
359 Isolate* isolate, int paramater_count) { 372 Isolate* isolate, int paramater_count) {
360 Zone* zone = isolate->interface_descriptor_zone(); 373 Zone* zone = isolate->interface_descriptor_zone();
361 Type::FunctionType* function = 374 Type::FunctionType* function =
362 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 2, zone); 375 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 2, zone);
363 function->InitParameter(0, Type::Receiver()); // JSFunction 376 function->InitParameter(0, Type::Receiver()); // JSFunction
364 function->InitParameter(1, SmiType(zone)); 377 function->InitParameter(1, SmiType(zone));
365 return function; 378 return function;
366 } 379 }
367 380
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 5, zone); 485 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 5, zone);
473 function->InitParameter(0, Type::Receiver()); 486 function->InitParameter(0, Type::Receiver());
474 function->InitParameter(1, SmiType(zone)); 487 function->InitParameter(1, SmiType(zone));
475 function->InitParameter(2, AnyTagged(zone)); 488 function->InitParameter(2, AnyTagged(zone));
476 function->InitParameter(3, AnyTagged(zone)); 489 function->InitParameter(3, AnyTagged(zone));
477 function->InitParameter(4, AnyTagged(zone)); 490 function->InitParameter(4, AnyTagged(zone));
478 return function; 491 return function;
479 } 492 }
480 } // namespace internal 493 } // namespace internal
481 } // namespace v8 494 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | src/json.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698