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

Side by Side Diff: src/execution.h

Issue 6902108: Implement CallAsConstructor method for Object in the API (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add missing testcase Created 9 years, 7 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 | Annotate | Revision Log
« src/api.cc ('K') | « src/api.cc ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 // Get a function delegate (or undefined) for the given non-function 138 // Get a function delegate (or undefined) for the given non-function
139 // object. Used for support calling objects as functions. 139 // object. Used for support calling objects as functions.
140 static Handle<Object> GetFunctionDelegate(Handle<Object> object); 140 static Handle<Object> GetFunctionDelegate(Handle<Object> object);
141 static Handle<Object> TryGetFunctionDelegate(Handle<Object> object, 141 static Handle<Object> TryGetFunctionDelegate(Handle<Object> object,
142 bool* has_pending_exception); 142 bool* has_pending_exception);
143 143
144 // Get a function delegate (or undefined) for the given non-function 144 // Get a function delegate (or undefined) for the given non-function
145 // object. Used for support calling objects as constructors. 145 // object. Used for support calling objects as constructors.
146 static Handle<Object> GetConstructorDelegate(Handle<Object> object); 146 static Handle<Object> GetConstructorDelegate(Handle<Object> object);
147 static Handle<Object> TryGetConstructorDelegate(Handle<Object> object,
148 bool* has_pending_exception);
147 }; 149 };
148 150
149 151
150 class ExecutionAccess; 152 class ExecutionAccess;
151 class Isolate; 153 class Isolate;
152 154
153 155
154 // StackGuard contains the handling of the limits that are used to limit the 156 // StackGuard contains the handling of the limits that are used to limit the
155 // number of nested invocations of JavaScript and the stack size used in each 157 // number of nested invocations of JavaScript and the stack size used in each
156 // invocation. 158 // invocation.
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 friend class StackLimitCheck; 286 friend class StackLimitCheck;
285 friend class PostponeInterruptsScope; 287 friend class PostponeInterruptsScope;
286 288
287 DISALLOW_COPY_AND_ASSIGN(StackGuard); 289 DISALLOW_COPY_AND_ASSIGN(StackGuard);
288 }; 290 };
289 291
290 292
291 } } // namespace v8::internal 293 } } // namespace v8::internal
292 294
293 #endif // V8_EXECUTION_H_ 295 #endif // V8_EXECUTION_H_
OLDNEW
« src/api.cc ('K') | « src/api.cc ('k') | src/execution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698