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

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

Issue 1469793002: [builtins] Sanitize the machinery around Construct calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: mips64 fix. Created 5 years 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/mips/builtins-mips.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/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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 Zone* zone = isolate->interface_descriptor_zone(); 420 Zone* zone = isolate->interface_descriptor_zone();
421 Type::FunctionType* function = 421 Type::FunctionType* function =
422 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 2, zone); 422 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 2, zone);
423 function->InitParameter(0, AnyTagged(zone)); // target 423 function->InitParameter(0, AnyTagged(zone)); // target
424 function->InitParameter(1, UntaggedIntegral32(zone)); // actual #arguments 424 function->InitParameter(1, UntaggedIntegral32(zone)); // actual #arguments
425 return function; 425 return function;
426 } 426 }
427 427
428 428
429 Type::FunctionType* 429 Type::FunctionType*
430 ConstructTrampolineDescriptor::BuildCallInterfaceDescriptorFunctionType(
431 Isolate* isolate, int paramater_count) {
432 Zone* zone = isolate->interface_descriptor_zone();
433 Type::FunctionType* function =
434 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 3, zone);
435 function->InitParameter(0, AnyTagged(zone)); // target
436 function->InitParameter(1, AnyTagged(zone)); // new.target
437 function->InitParameter(2, UntaggedIntegral32(zone)); // actual #arguments
438 return function;
439 }
440
441
442 Type::FunctionType*
430 CallFunctionWithFeedbackDescriptor::BuildCallInterfaceDescriptorFunctionType( 443 CallFunctionWithFeedbackDescriptor::BuildCallInterfaceDescriptorFunctionType(
431 Isolate* isolate, int paramater_count) { 444 Isolate* isolate, int paramater_count) {
432 Zone* zone = isolate->interface_descriptor_zone(); 445 Zone* zone = isolate->interface_descriptor_zone();
433 Type::FunctionType* function = 446 Type::FunctionType* function =
434 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 2, zone); 447 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 2, zone);
435 function->InitParameter(0, Type::Receiver()); // JSFunction 448 function->InitParameter(0, Type::Receiver()); // JSFunction
436 function->InitParameter(1, SmiType(zone)); 449 function->InitParameter(1, SmiType(zone));
437 return function; 450 return function;
438 } 451 }
439 452
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 5, zone); 554 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 5, zone);
542 function->InitParameter(0, Type::Receiver()); 555 function->InitParameter(0, Type::Receiver());
543 function->InitParameter(1, SmiType(zone)); 556 function->InitParameter(1, SmiType(zone));
544 function->InitParameter(2, AnyTagged(zone)); 557 function->InitParameter(2, AnyTagged(zone));
545 function->InitParameter(3, AnyTagged(zone)); 558 function->InitParameter(3, AnyTagged(zone));
546 function->InitParameter(4, AnyTagged(zone)); 559 function->InitParameter(4, AnyTagged(zone));
547 return function; 560 return function;
548 } 561 }
549 } // namespace internal 562 } // namespace internal
550 } // namespace v8 563 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698