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

Side by Side Diff: src/top.h

Issue 819001: Revert change to always call builtins for Array functions.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 9 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
« no previous file with comments | « src/stub-cache.cc ('k') | src/top.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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 static Handle<Context> global_context(); 335 static Handle<Context> global_context();
336 336
337 // Returns the global context of the calling JavaScript code. That 337 // Returns the global context of the calling JavaScript code. That
338 // is, the global context of the top-most JavaScript frame. 338 // is, the global context of the top-most JavaScript frame.
339 static Handle<Context> GetCallingGlobalContext(); 339 static Handle<Context> GetCallingGlobalContext();
340 340
341 static Handle<JSBuiltinsObject> builtins() { 341 static Handle<JSBuiltinsObject> builtins() {
342 return Handle<JSBuiltinsObject>(thread_local_.context_->builtins()); 342 return Handle<JSBuiltinsObject>(thread_local_.context_->builtins());
343 } 343 }
344 344
345 static bool CanHaveSpecialFunctions(JSObject* object);
346 static Object* LookupSpecialFunction(JSObject* receiver,
347 JSObject* prototype,
348 JSFunction* value);
349
345 static void RegisterTryCatchHandler(v8::TryCatch* that); 350 static void RegisterTryCatchHandler(v8::TryCatch* that);
346 static void UnregisterTryCatchHandler(v8::TryCatch* that); 351 static void UnregisterTryCatchHandler(v8::TryCatch* that);
347 352
348 #define TOP_GLOBAL_CONTEXT_FIELD_ACCESSOR(index, type, name) \ 353 #define TOP_GLOBAL_CONTEXT_FIELD_ACCESSOR(index, type, name) \
349 static Handle<type> name() { \ 354 static Handle<type> name() { \
350 return Handle<type>(context()->global_context()->name()); \ 355 return Handle<type>(context()->global_context()->name()); \
351 } 356 }
352 GLOBAL_CONTEXT_FIELDS(TOP_GLOBAL_CONTEXT_FIELD_ACCESSOR) 357 GLOBAL_CONTEXT_FIELDS(TOP_GLOBAL_CONTEXT_FIELD_ACCESSOR)
353 #undef TOP_GLOBAL_CONTEXT_FIELD_ACCESSOR 358 #undef TOP_GLOBAL_CONTEXT_FIELD_ACCESSOR
354 359
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 451
447 class ExecutionAccess BASE_EMBEDDED { 452 class ExecutionAccess BASE_EMBEDDED {
448 public: 453 public:
449 ExecutionAccess(); 454 ExecutionAccess();
450 ~ExecutionAccess(); 455 ~ExecutionAccess();
451 }; 456 };
452 457
453 } } // namespace v8::internal 458 } } // namespace v8::internal
454 459
455 #endif // V8_TOP_H_ 460 #endif // V8_TOP_H_
OLDNEW
« no previous file with comments | « src/stub-cache.cc ('k') | src/top.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698