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

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

Issue 551191: Port caching of lookup followups for interceptors to ARM (Closed)
Patch Set: Next iteration Created 10 years, 10 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
« no previous file with comments | « src/stub-cache.h ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 } 1051 }
1052 1052
1053 1053
1054 Object* StubCompiler::GetCodeWithFlags(Code::Flags flags, String* name) { 1054 Object* StubCompiler::GetCodeWithFlags(Code::Flags flags, String* name) {
1055 if (FLAG_print_code_stubs && (name != NULL)) { 1055 if (FLAG_print_code_stubs && (name != NULL)) {
1056 return GetCodeWithFlags(flags, *name->ToCString()); 1056 return GetCodeWithFlags(flags, *name->ToCString());
1057 } 1057 }
1058 return GetCodeWithFlags(flags, reinterpret_cast<char*>(NULL)); 1058 return GetCodeWithFlags(flags, reinterpret_cast<char*>(NULL));
1059 } 1059 }
1060 1060
1061 void StubCompiler::LookupPostInterceptor(JSObject* holder,
1062 String* name,
1063 LookupResult* lookup) {
1064 holder->LocalLookupRealNamedProperty(name, lookup);
1065 if (lookup->IsNotFound()) {
1066 Object* proto = holder->GetPrototype();
1067 if (proto != Heap::null_value()) {
1068 proto->Lookup(name, lookup);
1069 }
1070 }
1071 }
1072
1073
1061 1074
1062 Object* LoadStubCompiler::GetCode(PropertyType type, String* name) { 1075 Object* LoadStubCompiler::GetCode(PropertyType type, String* name) {
1063 Code::Flags flags = Code::ComputeMonomorphicFlags(Code::LOAD_IC, type); 1076 Code::Flags flags = Code::ComputeMonomorphicFlags(Code::LOAD_IC, type);
1064 return GetCodeWithFlags(flags, name); 1077 return GetCodeWithFlags(flags, name);
1065 } 1078 }
1066 1079
1067 1080
1068 Object* KeyedLoadStubCompiler::GetCode(PropertyType type, String* name) { 1081 Object* KeyedLoadStubCompiler::GetCode(PropertyType type, String* name) {
1069 Code::Flags flags = Code::ComputeMonomorphicFlags(Code::KEYED_LOAD_IC, type); 1082 Code::Flags flags = Code::ComputeMonomorphicFlags(Code::KEYED_LOAD_IC, type);
1070 return GetCodeWithFlags(flags, name); 1083 return GetCodeWithFlags(flags, name);
(...skipping 28 matching lines...) Expand all
1099 if (!result->IsFailure()) { 1112 if (!result->IsFailure()) {
1100 Code* code = Code::cast(result); 1113 Code* code = Code::cast(result);
1101 USE(code); 1114 USE(code);
1102 LOG(CodeCreateEvent(Logger::STUB_TAG, code, "ConstructStub")); 1115 LOG(CodeCreateEvent(Logger::STUB_TAG, code, "ConstructStub"));
1103 } 1116 }
1104 return result; 1117 return result;
1105 } 1118 }
1106 1119
1107 1120
1108 } } // namespace v8::internal 1121 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/stub-cache.h ('k') | src/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698