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

Side by Side Diff: src/top.h

Issue 857002: Reland 4068 which wrapped Array methods into native builtins (reverted in 4075). (Closed)
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
« 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
350 static void RegisterTryCatchHandler(v8::TryCatch* that); 345 static void RegisterTryCatchHandler(v8::TryCatch* that);
351 static void UnregisterTryCatchHandler(v8::TryCatch* that); 346 static void UnregisterTryCatchHandler(v8::TryCatch* that);
352 347
353 #define TOP_GLOBAL_CONTEXT_FIELD_ACCESSOR(index, type, name) \ 348 #define TOP_GLOBAL_CONTEXT_FIELD_ACCESSOR(index, type, name) \
354 static Handle<type> name() { \ 349 static Handle<type> name() { \
355 return Handle<type>(context()->global_context()->name()); \ 350 return Handle<type>(context()->global_context()->name()); \
356 } 351 }
357 GLOBAL_CONTEXT_FIELDS(TOP_GLOBAL_CONTEXT_FIELD_ACCESSOR) 352 GLOBAL_CONTEXT_FIELDS(TOP_GLOBAL_CONTEXT_FIELD_ACCESSOR)
358 #undef TOP_GLOBAL_CONTEXT_FIELD_ACCESSOR 353 #undef TOP_GLOBAL_CONTEXT_FIELD_ACCESSOR
359 354
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 446
452 class ExecutionAccess BASE_EMBEDDED { 447 class ExecutionAccess BASE_EMBEDDED {
453 public: 448 public:
454 ExecutionAccess(); 449 ExecutionAccess();
455 ~ExecutionAccess(); 450 ~ExecutionAccess();
456 }; 451 };
457 452
458 } } // namespace v8::internal 453 } } // namespace v8::internal
459 454
460 #endif // V8_TOP_H_ 455 #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