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 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1354 return (FLAG_print_code_stubs && !name.is_null()) | 1354 return (FLAG_print_code_stubs && !name.is_null()) |
1355 ? GetCodeWithFlags(flags, *name->ToCString()) | 1355 ? GetCodeWithFlags(flags, *name->ToCString()) |
1356 : GetCodeWithFlags(flags, reinterpret_cast<char*>(NULL)); | 1356 : GetCodeWithFlags(flags, reinterpret_cast<char*>(NULL)); |
1357 } | 1357 } |
1358 | 1358 |
1359 | 1359 |
1360 void StubCompiler::LookupPostInterceptor(Handle<JSObject> holder, | 1360 void StubCompiler::LookupPostInterceptor(Handle<JSObject> holder, |
1361 Handle<String> name, | 1361 Handle<String> name, |
1362 LookupResult* lookup) { | 1362 LookupResult* lookup) { |
1363 holder->LocalLookupRealNamedProperty(*name, lookup); | 1363 holder->LocalLookupRealNamedProperty(*name, lookup); |
1364 if (lookup->IsProperty()) return; | 1364 if (lookup->IsFound()) return; |
1365 | |
1366 lookup->NotFound(); | |
1367 if (holder->GetPrototype()->IsNull()) return; | 1365 if (holder->GetPrototype()->IsNull()) return; |
1368 | |
1369 holder->GetPrototype()->Lookup(*name, lookup); | 1366 holder->GetPrototype()->Lookup(*name, lookup); |
1370 } | 1367 } |
1371 | 1368 |
1372 | 1369 |
1373 Handle<Code> LoadStubCompiler::GetCode(Code::StubType type, | 1370 Handle<Code> LoadStubCompiler::GetCode(Code::StubType type, |
1374 Handle<String> name) { | 1371 Handle<String> name) { |
1375 Code::Flags flags = Code::ComputeMonomorphicFlags(Code::LOAD_IC, type); | 1372 Code::Flags flags = Code::ComputeMonomorphicFlags(Code::LOAD_IC, type); |
1376 Handle<Code> code = GetCodeWithFlags(flags, name); | 1373 Handle<Code> code = GetCodeWithFlags(flags, name); |
1377 PROFILE(isolate(), CodeCreateEvent(Logger::LOAD_IC_TAG, *code, *name)); | 1374 PROFILE(isolate(), CodeCreateEvent(Logger::LOAD_IC_TAG, *code, *name)); |
1378 GDBJIT(AddCode(GDBJITInterface::LOAD_IC, *name, *code)); | 1375 GDBJIT(AddCode(GDBJITInterface::LOAD_IC, *name, *code)); |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1576 Handle<FunctionTemplateInfo>( | 1573 Handle<FunctionTemplateInfo>( |
1577 FunctionTemplateInfo::cast(signature->receiver())); | 1574 FunctionTemplateInfo::cast(signature->receiver())); |
1578 } | 1575 } |
1579 } | 1576 } |
1580 | 1577 |
1581 is_simple_api_call_ = true; | 1578 is_simple_api_call_ = true; |
1582 } | 1579 } |
1583 | 1580 |
1584 | 1581 |
1585 } } // namespace v8::internal | 1582 } } // namespace v8::internal |
OLD | NEW |