| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // --- D a t a t h a t i s s p e c i f i c t o a t h r e a d --- | 99 // --- D a t a t h a t i s s p e c i f i c t o a t h r e a d --- |
| 100 | 100 |
| 101 | 101 |
| 102 static i::HandleScopeImplementer thread_local; | 102 static i::HandleScopeImplementer thread_local; |
| 103 | 103 |
| 104 | 104 |
| 105 // --- E x c e p t i o n B e h a v i o r --- | 105 // --- E x c e p t i o n B e h a v i o r --- |
| 106 | 106 |
| 107 | 107 |
| 108 static FatalErrorCallback exception_behavior = NULL; | 108 static FatalErrorCallback exception_behavior = NULL; |
| 109 int i::Internals::kJSObjectType = JS_OBJECT_TYPE; | |
| 110 int i::Internals::kFirstNonstringType = FIRST_NONSTRING_TYPE; | |
| 111 int i::Internals::kProxyType = PROXY_TYPE; | |
| 112 | 109 |
| 113 static void DefaultFatalErrorHandler(const char* location, | 110 static void DefaultFatalErrorHandler(const char* location, |
| 114 const char* message) { | 111 const char* message) { |
| 115 ENTER_V8; | 112 ENTER_V8; |
| 116 API_Fatal(location, message); | 113 API_Fatal(location, message); |
| 117 } | 114 } |
| 118 | 115 |
| 119 | 116 |
| 120 | 117 |
| 121 static FatalErrorCallback& GetFatalErrorHandler() { | 118 static FatalErrorCallback& GetFatalErrorHandler() { |
| (...skipping 4594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4716 | 4713 |
| 4717 | 4714 |
| 4718 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 4715 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
| 4719 HandleScopeImplementer* thread_local = | 4716 HandleScopeImplementer* thread_local = |
| 4720 reinterpret_cast<HandleScopeImplementer*>(storage); | 4717 reinterpret_cast<HandleScopeImplementer*>(storage); |
| 4721 thread_local->IterateThis(v); | 4718 thread_local->IterateThis(v); |
| 4722 return storage + ArchiveSpacePerThread(); | 4719 return storage + ArchiveSpacePerThread(); |
| 4723 } | 4720 } |
| 4724 | 4721 |
| 4725 } } // namespace v8::internal | 4722 } } // namespace v8::internal |
| OLD | NEW |