OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1302 return isolate->heap()->no_interceptor_result_sentinel(); | 1302 return isolate->heap()->no_interceptor_result_sentinel(); |
1303 } | 1303 } |
1304 | 1304 |
1305 | 1305 |
1306 static MaybeObject* ThrowReferenceError(Isolate* isolate, Name* name) { | 1306 static MaybeObject* ThrowReferenceError(Isolate* isolate, Name* name) { |
1307 // If the load is non-contextual, just return the undefined result. | 1307 // If the load is non-contextual, just return the undefined result. |
1308 // Note that both keyed and non-keyed loads may end up here, so we | 1308 // Note that both keyed and non-keyed loads may end up here, so we |
1309 // can't use either LoadIC or KeyedLoadIC constructors. | 1309 // can't use either LoadIC or KeyedLoadIC constructors. |
1310 IC ic(IC::NO_EXTRA_FRAME, isolate); | 1310 IC ic(IC::NO_EXTRA_FRAME, isolate); |
1311 ASSERT(ic.target()->is_load_stub() || ic.target()->is_keyed_load_stub()); | 1311 ASSERT(ic.target()->is_load_stub() || ic.target()->is_keyed_load_stub()); |
1312 if (!ic.SlowIsUndeclaredGlobal()) return HEAP->undefined_value(); | 1312 if (!ic.SlowIsUndeclaredGlobal()) return isolate->heap()->undefined_value(); |
1313 | 1313 |
1314 // Throw a reference error. | 1314 // Throw a reference error. |
1315 HandleScope scope(isolate); | 1315 HandleScope scope(isolate); |
1316 Handle<Name> name_handle(name); | 1316 Handle<Name> name_handle(name); |
1317 Handle<Object> error = | 1317 Handle<Object> error = |
1318 isolate->factory()->NewReferenceError("not_defined", | 1318 isolate->factory()->NewReferenceError("not_defined", |
1319 HandleVector(&name_handle, 1)); | 1319 HandleVector(&name_handle, 1)); |
1320 return isolate->Throw(*error); | 1320 return isolate->Throw(*error); |
1321 } | 1321 } |
1322 | 1322 |
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2261 Handle<FunctionTemplateInfo>( | 2261 Handle<FunctionTemplateInfo>( |
2262 FunctionTemplateInfo::cast(signature->receiver())); | 2262 FunctionTemplateInfo::cast(signature->receiver())); |
2263 } | 2263 } |
2264 } | 2264 } |
2265 | 2265 |
2266 is_simple_api_call_ = true; | 2266 is_simple_api_call_ = true; |
2267 } | 2267 } |
2268 | 2268 |
2269 | 2269 |
2270 } } // namespace v8::internal | 2270 } } // namespace v8::internal |
OLD | NEW |