Chromium Code Reviews| 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 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1039 } | 1039 } |
| 1040 Utils::OpenHandle(this)->set_internal_field_count(i::Smi::FromInt(value)); | 1040 Utils::OpenHandle(this)->set_internal_field_count(i::Smi::FromInt(value)); |
| 1041 } | 1041 } |
| 1042 | 1042 |
| 1043 | 1043 |
| 1044 // --- S c r i p t D a t a --- | 1044 // --- S c r i p t D a t a --- |
| 1045 | 1045 |
| 1046 | 1046 |
| 1047 ScriptData* ScriptData::PreCompile(const char* input, int length) { | 1047 ScriptData* ScriptData::PreCompile(const char* input, int length) { |
| 1048 unibrow::Utf8InputBuffer<> buf(input, length); | 1048 unibrow::Utf8InputBuffer<> buf(input, length); |
| 1049 return i::PreParse(&buf, NULL); | 1049 return i::PreParse(i::Handle<i::String>(), &buf, NULL); |
|
Kasper Lund
2009/08/18 06:49:41
i::Handle<i::String>::null() to make it more expli
Feng Qian
2009/08/18 07:14:10
Ah, didn't know this trick, but it is a bit confus
| |
| 1050 } | 1050 } |
| 1051 | 1051 |
| 1052 | 1052 |
| 1053 ScriptData* ScriptData::New(unsigned* data, int length) { | 1053 ScriptData* ScriptData::New(unsigned* data, int length) { |
| 1054 return new i::ScriptDataImpl(i::Vector<unsigned>(data, length)); | 1054 return new i::ScriptDataImpl(i::Vector<unsigned>(data, length)); |
| 1055 } | 1055 } |
| 1056 | 1056 |
| 1057 | 1057 |
| 1058 // --- S c r i p t --- | 1058 // --- S c r i p t --- |
| 1059 | 1059 |
| (...skipping 2585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3645 reinterpret_cast<HandleScopeImplementer*>(storage); | 3645 reinterpret_cast<HandleScopeImplementer*>(storage); |
| 3646 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); | 3646 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); |
| 3647 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = | 3647 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = |
| 3648 &thread_local->handle_scope_data_; | 3648 &thread_local->handle_scope_data_; |
| 3649 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); | 3649 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); |
| 3650 | 3650 |
| 3651 return storage + ArchiveSpacePerThread(); | 3651 return storage + ArchiveSpacePerThread(); |
| 3652 } | 3652 } |
| 3653 | 3653 |
| 3654 } } // namespace v8::internal | 3654 } } // namespace v8::internal |
| OLD | NEW |