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

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

Issue 6344005: Introduce extra IC state to record additional feedback from IC-s. (Closed)
Patch Set: Use the extra state in string IC stubs Created 9 years, 11 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
« src/ic.cc ('K') | « src/type-info.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 __ Move(rax, Handle<SharedFunctionInfo>(function->shared())); 1319 __ Move(rax, Handle<SharedFunctionInfo>(function->shared()));
1320 __ cmpq(FieldOperand(rdi, JSFunction::kSharedFunctionInfoOffset), rax); 1320 __ cmpq(FieldOperand(rdi, JSFunction::kSharedFunctionInfoOffset), rax);
1321 __ j(not_equal, miss); 1321 __ j(not_equal, miss);
1322 } else { 1322 } else {
1323 __ Cmp(rdi, Handle<JSFunction>(function)); 1323 __ Cmp(rdi, Handle<JSFunction>(function));
1324 __ j(not_equal, miss); 1324 __ j(not_equal, miss);
1325 } 1325 }
1326 } 1326 }
1327 1327
1328 1328
1329 MaybeObject* CallStubCompiler::GenerateMissBranch() { 1329 MaybeObject* CallStubCompiler::GenerateBranchHelper(
1330 MaybeObject* maybe_obj = 1330 Code::ExtraICState extra_ic_state) {
1331 StubCache::ComputeCallMiss(arguments().immediate(), kind_); 1331 MaybeObject* maybe_obj = StubCache::ComputeCallMiss(arguments().immediate(),
1332 kind_,
1333 extra_ic_state);
1332 Object* obj; 1334 Object* obj;
1333 if (!maybe_obj->ToObject(&obj)) return maybe_obj; 1335 if (!maybe_obj->ToObject(&obj)) return maybe_obj;
1334 __ Jump(Handle<Code>(Code::cast(obj)), RelocInfo::CODE_TARGET); 1336 __ Jump(Handle<Code>(Code::cast(obj)), RelocInfo::CODE_TARGET);
1335 return obj; 1337 return obj;
1336 } 1338 }
1337 1339
1338 1340
1339 MaybeObject* CallStubCompiler::CompileCallField(JSObject* object, 1341 MaybeObject* CallStubCompiler::CompileCallField(JSObject* object,
1340 JSObject* holder, 1342 JSObject* holder,
1341 int index, 1343 int index,
(...skipping 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after
3113 // Return the generated code. 3115 // Return the generated code.
3114 return GetCode(); 3116 return GetCode();
3115 } 3117 }
3116 3118
3117 3119
3118 #undef __ 3120 #undef __
3119 3121
3120 } } // namespace v8::internal 3122 } } // namespace v8::internal
3121 3123
3122 #endif // V8_TARGET_ARCH_X64 3124 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/ic.cc ('K') | « src/type-info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698