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

Side by Side Diff: src/compiler.cc

Issue 1912633002: [ic] Split LoadIC into LoadGlobalIC and LoadIC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing Created 4 years, 6 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/code-stubs.h ('k') | src/compiler/js-generic-lowering.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/compiler.h" 5 #include "src/compiler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "src/ast/ast-numbering.h" 9 #include "src/ast/ast-numbering.h"
10 #include "src/ast/prettyprinter.h" 10 #include "src/ast/prettyprinter.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 name[name_vec.length()] = '\0'; 193 name[name_vec.length()] = '\0';
194 return name; 194 return name;
195 } 195 }
196 196
197 StackFrame::Type CompilationInfo::GetOutputStackFrameType() const { 197 StackFrame::Type CompilationInfo::GetOutputStackFrameType() const {
198 switch (output_code_kind()) { 198 switch (output_code_kind()) {
199 case Code::STUB: 199 case Code::STUB:
200 case Code::BYTECODE_HANDLER: 200 case Code::BYTECODE_HANDLER:
201 case Code::HANDLER: 201 case Code::HANDLER:
202 case Code::BUILTIN: 202 case Code::BUILTIN:
203 case Code::LOAD_IC: 203 #define CASE_KIND(kind) case Code::kind:
204 case Code::KEYED_LOAD_IC: 204 IC_KIND_LIST(CASE_KIND)
205 case Code::STORE_IC: 205 #undef CASE_KIND
206 case Code::KEYED_STORE_IC:
207 return StackFrame::STUB; 206 return StackFrame::STUB;
208 case Code::WASM_FUNCTION: 207 case Code::WASM_FUNCTION:
209 return StackFrame::WASM; 208 return StackFrame::WASM;
210 case Code::JS_TO_WASM_FUNCTION: 209 case Code::JS_TO_WASM_FUNCTION:
211 return StackFrame::JS_TO_WASM; 210 return StackFrame::JS_TO_WASM;
212 case Code::WASM_TO_JS_FUNCTION: 211 case Code::WASM_TO_JS_FUNCTION:
213 return StackFrame::WASM_TO_JS; 212 return StackFrame::WASM_TO_JS;
214 default: 213 default:
215 UNIMPLEMENTED(); 214 UNIMPLEMENTED();
216 return StackFrame::NONE; 215 return StackFrame::NONE;
(...skipping 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after
1805 DCHECK(shared->is_compiled()); 1804 DCHECK(shared->is_compiled());
1806 function->set_literals(cached.literals); 1805 function->set_literals(cached.literals);
1807 } else if (shared->is_compiled()) { 1806 } else if (shared->is_compiled()) {
1808 // TODO(mvstanton): pass pretenure flag to EnsureLiterals. 1807 // TODO(mvstanton): pass pretenure flag to EnsureLiterals.
1809 JSFunction::EnsureLiterals(function); 1808 JSFunction::EnsureLiterals(function);
1810 } 1809 }
1811 } 1810 }
1812 1811
1813 } // namespace internal 1812 } // namespace internal
1814 } // namespace v8 1813 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698