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

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

Issue 424423002: Remove keyed_store_calling convention and friends (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/ic.h ('k') | src/x64/ic-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 void PropertyAccessCompiler::TailCallBuiltin(MacroAssembler* masm, 1092 void PropertyAccessCompiler::TailCallBuiltin(MacroAssembler* masm,
1093 Builtins::Name name) { 1093 Builtins::Name name) {
1094 Handle<Code> code(masm->isolate()->builtins()->builtin(name)); 1094 Handle<Code> code(masm->isolate()->builtins()->builtin(name));
1095 GenerateTailCall(masm, code); 1095 GenerateTailCall(masm, code);
1096 } 1096 }
1097 1097
1098 1098
1099 Register* PropertyAccessCompiler::GetCallingConvention(Code::Kind kind) { 1099 Register* PropertyAccessCompiler::GetCallingConvention(Code::Kind kind) {
1100 if (kind == Code::LOAD_IC || kind == Code::KEYED_LOAD_IC) { 1100 if (kind == Code::LOAD_IC || kind == Code::KEYED_LOAD_IC) {
1101 return load_calling_convention(); 1101 return load_calling_convention();
1102 } else if (kind == Code::STORE_IC) {
1103 return store_calling_convention();
1104 } else {
1105 ASSERT_EQ(Code::KEYED_STORE_IC, kind);
1106 return keyed_store_calling_convention();
1107 } 1102 }
1103 ASSERT(kind == Code::STORE_IC || kind == Code::KEYED_STORE_IC);
1104 return store_calling_convention();
1108 } 1105 }
1109 1106
1110 1107
1111 Handle<Code> PropertyICCompiler::GetCode(Code::Kind kind, Code::StubType type, 1108 Handle<Code> PropertyICCompiler::GetCode(Code::Kind kind, Code::StubType type,
1112 Handle<Name> name, 1109 Handle<Name> name,
1113 InlineCacheState state) { 1110 InlineCacheState state) {
1114 Code::Flags flags = 1111 Code::Flags flags =
1115 Code::ComputeFlags(kind, state, extra_ic_state_, type, cache_holder()); 1112 Code::ComputeFlags(kind, state, extra_ic_state_, type, cache_holder());
1116 Handle<Code> code = GetCodeWithFlags(flags, name); 1113 Handle<Code> code = GetCodeWithFlags(flags, name);
1117 IC::RegisterWeakMapDependency(code); 1114 IC::RegisterWeakMapDependency(code);
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1327 Handle<FunctionTemplateInfo>( 1324 Handle<FunctionTemplateInfo>(
1328 FunctionTemplateInfo::cast(signature->receiver())); 1325 FunctionTemplateInfo::cast(signature->receiver()));
1329 } 1326 }
1330 } 1327 }
1331 1328
1332 is_simple_api_call_ = true; 1329 is_simple_api_call_ = true;
1333 } 1330 }
1334 1331
1335 1332
1336 } } // namespace v8::internal 1333 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.h ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698