OLD | NEW |
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 Loading... |
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: |
| 204 case Code::KEYED_LOAD_IC: |
| 205 case Code::STORE_IC: |
| 206 case Code::KEYED_STORE_IC: |
203 return StackFrame::STUB; | 207 return StackFrame::STUB; |
204 case Code::WASM_FUNCTION: | 208 case Code::WASM_FUNCTION: |
205 return StackFrame::WASM; | 209 return StackFrame::WASM; |
206 case Code::JS_TO_WASM_FUNCTION: | 210 case Code::JS_TO_WASM_FUNCTION: |
207 return StackFrame::JS_TO_WASM; | 211 return StackFrame::JS_TO_WASM; |
208 case Code::WASM_TO_JS_FUNCTION: | 212 case Code::WASM_TO_JS_FUNCTION: |
209 return StackFrame::WASM_TO_JS; | 213 return StackFrame::WASM_TO_JS; |
210 default: | 214 default: |
211 UNIMPLEMENTED(); | 215 UNIMPLEMENTED(); |
212 return StackFrame::NONE; | 216 return StackFrame::NONE; |
(...skipping 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1787 DCHECK(shared->is_compiled()); | 1791 DCHECK(shared->is_compiled()); |
1788 function->set_literals(cached.literals); | 1792 function->set_literals(cached.literals); |
1789 } else if (shared->is_compiled()) { | 1793 } else if (shared->is_compiled()) { |
1790 // TODO(mvstanton): pass pretenure flag to EnsureLiterals. | 1794 // TODO(mvstanton): pass pretenure flag to EnsureLiterals. |
1791 JSFunction::EnsureLiterals(function); | 1795 JSFunction::EnsureLiterals(function); |
1792 } | 1796 } |
1793 } | 1797 } |
1794 | 1798 |
1795 } // namespace internal | 1799 } // namespace internal |
1796 } // namespace v8 | 1800 } // namespace v8 |
OLD | NEW |