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

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

Issue 1371083003: [presubmit] Enable readability/namespace linter checking. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 years, 2 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/isolate.h » ('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 11 matching lines...) Expand all
22 Type* AnyTagged(Zone* zone) { 22 Type* AnyTagged(Zone* zone) {
23 return Type::Intersect( 23 return Type::Intersect(
24 Type::Any(), 24 Type::Any(),
25 Type::Union(Type::TaggedPointer(), Type::TaggedSigned(), zone), zone); 25 Type::Union(Type::TaggedPointer(), Type::TaggedSigned(), zone), zone);
26 } 26 }
27 27
28 28
29 Type* ExternalPointer(Zone* zone) { 29 Type* ExternalPointer(Zone* zone) {
30 return Type::Intersect(Type::Internal(), Type::UntaggedPointer(), zone); 30 return Type::Intersect(Type::Internal(), Type::UntaggedPointer(), zone);
31 } 31 }
32 } 32 } // namespace
33 33
34 34
35 Type::FunctionType* CallInterfaceDescriptor::BuildDefaultFunctionType( 35 Type::FunctionType* CallInterfaceDescriptor::BuildDefaultFunctionType(
36 Isolate* isolate, int parameter_count) { 36 Isolate* isolate, int parameter_count) {
37 Zone* zone = isolate->interface_descriptor_zone(); 37 Zone* zone = isolate->interface_descriptor_zone();
38 Type::FunctionType* function = Type::FunctionType::New( 38 Type::FunctionType* function = Type::FunctionType::New(
39 AnyTagged(zone), Type::Undefined(), parameter_count, zone); 39 AnyTagged(zone), Type::Undefined(), parameter_count, zone);
40 while (parameter_count-- != 0) { 40 while (parameter_count-- != 0) {
41 function->InitParameter(parameter_count, AnyTagged(zone)); 41 function->InitParameter(parameter_count, AnyTagged(zone));
42 } 42 }
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 5, zone); 512 Type::FunctionType::New(AnyTagged(zone), Type::Undefined(), 5, zone);
513 function->InitParameter(0, Type::Receiver()); 513 function->InitParameter(0, Type::Receiver());
514 function->InitParameter(1, SmiType(zone)); 514 function->InitParameter(1, SmiType(zone));
515 function->InitParameter(2, AnyTagged(zone)); 515 function->InitParameter(2, AnyTagged(zone));
516 function->InitParameter(3, AnyTagged(zone)); 516 function->InitParameter(3, AnyTagged(zone));
517 function->InitParameter(4, AnyTagged(zone)); 517 function->InitParameter(4, AnyTagged(zone));
518 return function; 518 return function;
519 } 519 }
520 } // namespace internal 520 } // namespace internal
521 } // namespace v8 521 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698