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

Side by Side Diff: src/builtins/builtins.cc

Issue 2394213003: Named all zones in the project (Closed)
Patch Set: Merge branch 'master' into zonenames Created 4 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/background-parsing-task.cc ('k') | src/code-stubs.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/builtins/builtins.h" 5 #include "src/builtins/builtins.h"
6 #include "src/code-events.h" 6 #include "src/code-events.h"
7 #include "src/code-stub-assembler.h" 7 #include "src/code-stub-assembler.h"
8 #include "src/ic/ic-state.h" 8 #include "src/ic/ic-state.h"
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 #include "src/isolate.h" 10 #include "src/isolate.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 isolate->factory()->NewCode(desc, flags, masm.CodeObject()); 76 isolate->factory()->NewCode(desc, flags, masm.CodeObject());
77 PostBuildProfileAndTracing(isolate, *code, name); 77 PostBuildProfileAndTracing(isolate, *code, name);
78 return *code; 78 return *code;
79 } 79 }
80 80
81 // Builder for builtins implemented in TurboFan with JS linkage. 81 // Builder for builtins implemented in TurboFan with JS linkage.
82 Code* BuildWithCodeStubAssemblerJS(Isolate* isolate, 82 Code* BuildWithCodeStubAssemblerJS(Isolate* isolate,
83 CodeAssemblerGenerator generator, int argc, 83 CodeAssemblerGenerator generator, int argc,
84 Code::Flags flags, const char* name) { 84 Code::Flags flags, const char* name) {
85 HandleScope scope(isolate); 85 HandleScope scope(isolate);
86 Zone zone(isolate->allocator()); 86 Zone zone(isolate->allocator(), ZONE_NAME);
87 CodeStubAssembler assembler(isolate, &zone, argc, flags, name); 87 CodeStubAssembler assembler(isolate, &zone, argc, flags, name);
88 generator(&assembler); 88 generator(&assembler);
89 Handle<Code> code = assembler.GenerateCode(); 89 Handle<Code> code = assembler.GenerateCode();
90 PostBuildProfileAndTracing(isolate, *code, name); 90 PostBuildProfileAndTracing(isolate, *code, name);
91 return *code; 91 return *code;
92 } 92 }
93 93
94 // Builder for builtins implemented in TurboFan with CallStub linkage. 94 // Builder for builtins implemented in TurboFan with CallStub linkage.
95 Code* BuildWithCodeStubAssemblerCS(Isolate* isolate, 95 Code* BuildWithCodeStubAssemblerCS(Isolate* isolate,
96 CodeAssemblerGenerator generator, 96 CodeAssemblerGenerator generator,
97 CallDescriptors::Key interface_descriptor, 97 CallDescriptors::Key interface_descriptor,
98 Code::Flags flags, const char* name) { 98 Code::Flags flags, const char* name) {
99 HandleScope scope(isolate); 99 HandleScope scope(isolate);
100 Zone zone(isolate->allocator()); 100 Zone zone(isolate->allocator(), ZONE_NAME);
101 // The interface descriptor with given key must be initialized at this point 101 // The interface descriptor with given key must be initialized at this point
102 // and this construction just queries the details from the descriptors table. 102 // and this construction just queries the details from the descriptors table.
103 CallInterfaceDescriptor descriptor(isolate, interface_descriptor); 103 CallInterfaceDescriptor descriptor(isolate, interface_descriptor);
104 // Ensure descriptor is already initialized. 104 // Ensure descriptor is already initialized.
105 DCHECK_LE(0, descriptor.GetRegisterParameterCount()); 105 DCHECK_LE(0, descriptor.GetRegisterParameterCount());
106 CodeStubAssembler assembler(isolate, &zone, descriptor, flags, name); 106 CodeStubAssembler assembler(isolate, &zone, descriptor, flags, name);
107 generator(&assembler); 107 generator(&assembler);
108 Handle<Code> code = assembler.GenerateCode(); 108 Handle<Code> code = assembler.GenerateCode();
109 PostBuildProfileAndTracing(isolate, *code, name); 109 PostBuildProfileAndTracing(isolate, *code, name);
110 return *code; 110 return *code;
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 // TODO(jochen): Remove this. 286 // TODO(jochen): Remove this.
287 if (responsible_context.is_null()) { 287 if (responsible_context.is_null()) {
288 return true; 288 return true;
289 } 289 }
290 if (*responsible_context == target->context()) return true; 290 if (*responsible_context == target->context()) return true;
291 return isolate->MayAccess(responsible_context, target_global_proxy); 291 return isolate->MayAccess(responsible_context, target_global_proxy);
292 } 292 }
293 293
294 } // namespace internal 294 } // namespace internal
295 } // namespace v8 295 } // namespace v8
OLDNEW
« no previous file with comments | « src/background-parsing-task.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698