OLD | NEW |
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 Loading... |
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); |
345 static Object* LookupSpecialFunction(JSObject* receiver, | 346 static Object* LookupSpecialFunction(JSObject* receiver, |
346 JSObject* prototype, | 347 JSObject* prototype, |
347 JSFunction* value); | 348 JSFunction* value); |
348 | 349 |
349 static void RegisterTryCatchHandler(v8::TryCatch* that); | 350 static void RegisterTryCatchHandler(v8::TryCatch* that); |
350 static void UnregisterTryCatchHandler(v8::TryCatch* that); | 351 static void UnregisterTryCatchHandler(v8::TryCatch* that); |
351 | 352 |
352 #define TOP_GLOBAL_CONTEXT_FIELD_ACCESSOR(index, type, name) \ | 353 #define TOP_GLOBAL_CONTEXT_FIELD_ACCESSOR(index, type, name) \ |
353 static Handle<type> name() { \ | 354 static Handle<type> name() { \ |
354 return Handle<type>(context()->global_context()->name()); \ | 355 return Handle<type>(context()->global_context()->name()); \ |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 | 451 |
451 class ExecutionAccess BASE_EMBEDDED { | 452 class ExecutionAccess BASE_EMBEDDED { |
452 public: | 453 public: |
453 ExecutionAccess(); | 454 ExecutionAccess(); |
454 ~ExecutionAccess(); | 455 ~ExecutionAccess(); |
455 }; | 456 }; |
456 | 457 |
457 } } // namespace v8::internal | 458 } } // namespace v8::internal |
458 | 459 |
459 #endif // V8_TOP_H_ | 460 #endif // V8_TOP_H_ |
OLD | NEW |