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

Side by Side Diff: src/execution.h

Issue 7623011: Implement function proxies (except for their use as constructors). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Kevin's comments. Created 9 years, 3 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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 class Execution : public AllStatic { 47 class Execution : public AllStatic {
48 public: 48 public:
49 // Call a function, the caller supplies a receiver and an array 49 // Call a function, the caller supplies a receiver and an array
50 // of arguments. Arguments are Object* type. After function returns, 50 // of arguments. Arguments are Object* type. After function returns,
51 // pointers in 'args' might be invalid. 51 // pointers in 'args' might be invalid.
52 // 52 //
53 // *pending_exception tells whether the invoke resulted in 53 // *pending_exception tells whether the invoke resulted in
54 // a pending exception. 54 // a pending exception.
55 // 55 //
56 // When convert_receiver is set, and the receiver is not an object,
57 // and the function called is not in strict mode, receiver is converted to
58 // and object.
Kevin Millikin (Chromium) 2011/09/12 14:42:47 "and object" ==> "an object"
rossberg 2011/09/12 15:17:25 Done.
59 //
56 static Handle<Object> Call(Handle<Object> callable, 60 static Handle<Object> Call(Handle<Object> callable,
57 Handle<Object> receiver, 61 Handle<Object> receiver,
58 int argc, 62 int argc,
59 Object*** args, 63 Object*** args,
60 bool* pending_exception); 64 bool* pending_exception,
65 bool convert_receiver = false);
61 66
62 // Construct object from function, the caller supplies an array of 67 // Construct object from function, the caller supplies an array of
63 // arguments. Arguments are Object* type. After function returns, 68 // arguments. Arguments are Object* type. After function returns,
64 // pointers in 'args' might be invalid. 69 // pointers in 'args' might be invalid.
65 // 70 //
66 // *pending_exception tells whether the invoke resulted in 71 // *pending_exception tells whether the invoke resulted in
67 // a pending exception. 72 // a pending exception.
68 // 73 //
69 static Handle<Object> New(Handle<JSFunction> func, 74 static Handle<Object> New(Handle<JSFunction> func,
70 int argc, 75 int argc,
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 friend class StackLimitCheck; 293 friend class StackLimitCheck;
289 friend class PostponeInterruptsScope; 294 friend class PostponeInterruptsScope;
290 295
291 DISALLOW_COPY_AND_ASSIGN(StackGuard); 296 DISALLOW_COPY_AND_ASSIGN(StackGuard);
292 }; 297 };
293 298
294 299
295 } } // namespace v8::internal 300 } } // namespace v8::internal
296 301
297 #endif // V8_EXECUTION_H_ 302 #endif // V8_EXECUTION_H_
OLDNEW
« no previous file with comments | « src/builtins.h ('k') | src/execution.cc » ('j') | src/execution.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698