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

Side by Side Diff: src/execution.h

Issue 895053002: Move the contents of api-natives.js to c++ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/date.js ('k') | src/execution.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_EXECUTION_H_ 5 #ifndef V8_EXECUTION_H_
6 #define V8_EXECUTION_H_ 6 #define V8_EXECUTION_H_
7 7
8 #include "src/handles.h" 8 #include "src/handles.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 Isolate* isolate, double time); 91 Isolate* isolate, double time);
92 92
93 // Create a new regular expression object from 'pattern' and 'flags'. 93 // Create a new regular expression object from 'pattern' and 'flags'.
94 MUST_USE_RESULT static MaybeHandle<JSRegExp> NewJSRegExp( 94 MUST_USE_RESULT static MaybeHandle<JSRegExp> NewJSRegExp(
95 Handle<String> pattern, Handle<String> flags); 95 Handle<String> pattern, Handle<String> flags);
96 96
97 // Used to implement [] notation on strings (calls JS code) 97 // Used to implement [] notation on strings (calls JS code)
98 static Handle<Object> CharAt(Handle<String> str, uint32_t index); 98 static Handle<Object> CharAt(Handle<String> str, uint32_t index);
99 99
100 static Handle<Object> GetFunctionFor(); 100 static Handle<Object> GetFunctionFor();
101 MUST_USE_RESULT static MaybeHandle<JSFunction> InstantiateFunction(
102 Handle<FunctionTemplateInfo> data);
103 MUST_USE_RESULT static MaybeHandle<JSObject> InstantiateObject(
104 Handle<ObjectTemplateInfo> data);
105 MUST_USE_RESULT static MaybeHandle<Object> ConfigureInstance(
106 Isolate* isolate, Handle<Object> instance, Handle<Object> data);
107 static Handle<String> GetStackTraceLine(Handle<Object> recv, 101 static Handle<String> GetStackTraceLine(Handle<Object> recv,
108 Handle<JSFunction> fun, 102 Handle<JSFunction> fun,
109 Handle<Object> pos, 103 Handle<Object> pos,
110 Handle<Object> is_global); 104 Handle<Object> is_global);
111 105
112 // Get a function delegate (or undefined) for the given non-function 106 // Get a function delegate (or undefined) for the given non-function
113 // object. Used for support calling objects as functions. 107 // object. Used for support calling objects as functions.
114 static Handle<Object> GetFunctionDelegate(Isolate* isolate, 108 static Handle<Object> GetFunctionDelegate(Isolate* isolate,
115 Handle<Object> object); 109 Handle<Object> object);
116 MUST_USE_RESULT static MaybeHandle<Object> TryGetFunctionDelegate( 110 MUST_USE_RESULT static MaybeHandle<Object> TryGetFunctionDelegate(
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 friend class Isolate; 268 friend class Isolate;
275 friend class StackLimitCheck; 269 friend class StackLimitCheck;
276 friend class PostponeInterruptsScope; 270 friend class PostponeInterruptsScope;
277 271
278 DISALLOW_COPY_AND_ASSIGN(StackGuard); 272 DISALLOW_COPY_AND_ASSIGN(StackGuard);
279 }; 273 };
280 274
281 } } // namespace v8::internal 275 } } // namespace v8::internal
282 276
283 #endif // V8_EXECUTION_H_ 277 #endif // V8_EXECUTION_H_
OLDNEW
« no previous file with comments | « src/date.js ('k') | src/execution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698