OLD | NEW |
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/compiler/code-assembler.h" | 7 #include "src/compiler/code-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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 Code::Flags flags, const char* name) { | 101 Code::Flags flags, const char* name) { |
102 HandleScope scope(isolate); | 102 HandleScope scope(isolate); |
103 Zone zone(isolate->allocator(), ZONE_NAME); | 103 Zone zone(isolate->allocator(), ZONE_NAME); |
104 // The interface descriptor with given key must be initialized at this point | 104 // The interface descriptor with given key must be initialized at this point |
105 // and this construction just queries the details from the descriptors table. | 105 // and this construction just queries the details from the descriptors table. |
106 CallInterfaceDescriptor descriptor(isolate, interface_descriptor); | 106 CallInterfaceDescriptor descriptor(isolate, interface_descriptor); |
107 // Ensure descriptor is already initialized. | 107 // Ensure descriptor is already initialized. |
108 DCHECK_LE(0, descriptor.GetRegisterParameterCount()); | 108 DCHECK_LE(0, descriptor.GetRegisterParameterCount()); |
109 compiler::CodeAssemblerState state(isolate, &zone, descriptor, flags, name); | 109 compiler::CodeAssemblerState state(isolate, &zone, descriptor, flags, name); |
110 generator(&state); | 110 generator(&state); |
111 Handle<Code> code = compiler::CodeAssembler::GenerateCode(&state); | 111 Handle<Code> code = |
| 112 compiler::CodeAssembler::GenerateCode(&state, FLAG_csa_verify); |
112 PostBuildProfileAndTracing(isolate, *code, name); | 113 PostBuildProfileAndTracing(isolate, *code, name); |
113 return *code; | 114 return *code; |
114 } | 115 } |
115 } // anonymous namespace | 116 } // anonymous namespace |
116 | 117 |
117 void Builtins::SetUp(Isolate* isolate, bool create_heap_objects) { | 118 void Builtins::SetUp(Isolate* isolate, bool create_heap_objects) { |
118 DCHECK(!initialized_); | 119 DCHECK(!initialized_); |
119 | 120 |
120 // Create a scope for the handles in the builtins. | 121 // Create a scope for the handles in the builtins. |
121 HandleScope scope(isolate); | 122 HandleScope scope(isolate); |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 // TODO(jochen): Remove this. | 290 // TODO(jochen): Remove this. |
290 if (responsible_context.is_null()) { | 291 if (responsible_context.is_null()) { |
291 return true; | 292 return true; |
292 } | 293 } |
293 if (*responsible_context == target->context()) return true; | 294 if (*responsible_context == target->context()) return true; |
294 return isolate->MayAccess(responsible_context, target_global_proxy); | 295 return isolate->MayAccess(responsible_context, target_global_proxy); |
295 } | 296 } |
296 | 297 |
297 } // namespace internal | 298 } // namespace internal |
298 } // namespace v8 | 299 } // namespace v8 |
OLD | NEW |