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.h" | 5 #include "src/builtins.h" |
6 | 6 |
7 #include "src/api-arguments.h" | 7 #include "src/api-arguments.h" |
8 #include "src/api-natives.h" | 8 #include "src/api-natives.h" |
9 #include "src/api.h" | 9 #include "src/api.h" |
10 #include "src/base/ieee754.h" | 10 #include "src/base/ieee754.h" |
11 #include "src/base/once.h" | 11 #include "src/base/once.h" |
12 #include "src/bootstrapper.h" | 12 #include "src/bootstrapper.h" |
13 #include "src/code-factory.h" | 13 #include "src/code-factory.h" |
14 #include "src/code-stub-assembler.h" | 14 #include "src/code-stub-assembler.h" |
15 #include "src/dateparser-inl.h" | 15 #include "src/dateparser-inl.h" |
16 #include "src/elements.h" | 16 #include "src/elements.h" |
17 #include "src/frames-inl.h" | 17 #include "src/frames-inl.h" |
18 #include "src/gdb-jit.h" | 18 #include "src/gdb-jit.h" |
| 19 #include "src/globals.h" |
19 #include "src/ic/handler-compiler.h" | 20 #include "src/ic/handler-compiler.h" |
20 #include "src/ic/ic.h" | 21 #include "src/ic/ic.h" |
21 #include "src/isolate-inl.h" | 22 #include "src/isolate-inl.h" |
22 #include "src/json-parser.h" | 23 #include "src/json-parser.h" |
23 #include "src/json-stringifier.h" | 24 #include "src/json-stringifier.h" |
24 #include "src/messages.h" | 25 #include "src/messages.h" |
25 #include "src/property-descriptor.h" | 26 #include "src/property-descriptor.h" |
26 #include "src/prototype.h" | 27 #include "src/prototype.h" |
27 #include "src/string-builder.h" | 28 #include "src/string-builder.h" |
28 #include "src/uri.h" | 29 #include "src/uri.h" |
(...skipping 2147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2176 !CodeGenerationFromStringsAllowed(isolate, native_context)) { | 2177 !CodeGenerationFromStringsAllowed(isolate, native_context)) { |
2177 Handle<Object> error_message = | 2178 Handle<Object> error_message = |
2178 native_context->ErrorMessageForCodeGenerationFromStrings(); | 2179 native_context->ErrorMessageForCodeGenerationFromStrings(); |
2179 THROW_NEW_ERROR(isolate, NewEvalError(MessageTemplate::kCodeGenFromStrings, | 2180 THROW_NEW_ERROR(isolate, NewEvalError(MessageTemplate::kCodeGenFromStrings, |
2180 error_message), | 2181 error_message), |
2181 JSFunction); | 2182 JSFunction); |
2182 } | 2183 } |
2183 | 2184 |
2184 // Compile source string in the native context. | 2185 // Compile source string in the native context. |
2185 int eval_scope_position = 0; | 2186 int eval_scope_position = 0; |
2186 int eval_position = RelocInfo::kNoPosition; | 2187 int eval_position = kNoSourcePosition; |
2187 Handle<SharedFunctionInfo> outer_info(native_context->closure()->shared()); | 2188 Handle<SharedFunctionInfo> outer_info(native_context->closure()->shared()); |
2188 return Compiler::GetFunctionFromEval(source, outer_info, native_context, | 2189 return Compiler::GetFunctionFromEval(source, outer_info, native_context, |
2189 SLOPPY, restriction, eval_scope_position, | 2190 SLOPPY, restriction, eval_scope_position, |
2190 eval_position); | 2191 eval_position); |
2191 } | 2192 } |
2192 | 2193 |
2193 } // namespace | 2194 } // namespace |
2194 | 2195 |
2195 | 2196 |
2196 // ES6 section 18.2.1 eval (x) | 2197 // ES6 section 18.2.1 eval (x) |
(...skipping 4096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6293 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) | 6294 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) |
6294 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) | 6295 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) |
6295 #undef DEFINE_BUILTIN_ACCESSOR_C | 6296 #undef DEFINE_BUILTIN_ACCESSOR_C |
6296 #undef DEFINE_BUILTIN_ACCESSOR_A | 6297 #undef DEFINE_BUILTIN_ACCESSOR_A |
6297 #undef DEFINE_BUILTIN_ACCESSOR_T | 6298 #undef DEFINE_BUILTIN_ACCESSOR_T |
6298 #undef DEFINE_BUILTIN_ACCESSOR_S | 6299 #undef DEFINE_BUILTIN_ACCESSOR_S |
6299 #undef DEFINE_BUILTIN_ACCESSOR_H | 6300 #undef DEFINE_BUILTIN_ACCESSOR_H |
6300 | 6301 |
6301 } // namespace internal | 6302 } // namespace internal |
6302 } // namespace v8 | 6303 } // namespace v8 |
OLD | NEW |