Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Side by Side Diff: src/stub-cache.cc

Issue 10779012: Removing LookupTransition from LookupRealNamedProperty and related utility functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/runtime.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698