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

Side by Side Diff: src/deoptimizer.cc

Issue 2811183005: Do not use new struct type where unnecessary. (Closed)
Patch Set: rebase Created 3 years, 8 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/compiler/types.cc ('k') | src/factory.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/deoptimizer.h" 5 #include "src/deoptimizer.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "src/accessors.h" 9 #include "src/accessors.h"
10 #include "src/assembler-inl.h" 10 #include "src/assembler-inl.h"
(...skipping 4192 matching lines...) Expand 10 before | Expand all | Expand 10 after
4203 case MODULE_TYPE: 4203 case MODULE_TYPE:
4204 case MODULE_INFO_ENTRY_TYPE: 4204 case MODULE_INFO_ENTRY_TYPE:
4205 case FREE_SPACE_TYPE: 4205 case FREE_SPACE_TYPE:
4206 #define FIXED_TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \ 4206 #define FIXED_TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \
4207 case FIXED_##TYPE##_ARRAY_TYPE: 4207 case FIXED_##TYPE##_ARRAY_TYPE:
4208 TYPED_ARRAYS(FIXED_TYPED_ARRAY_CASE) 4208 TYPED_ARRAYS(FIXED_TYPED_ARRAY_CASE)
4209 #undef FIXED_TYPED_ARRAY_CASE 4209 #undef FIXED_TYPED_ARRAY_CASE
4210 case FILLER_TYPE: 4210 case FILLER_TYPE:
4211 case ACCESS_CHECK_INFO_TYPE: 4211 case ACCESS_CHECK_INFO_TYPE:
4212 case INTERCEPTOR_INFO_TYPE: 4212 case INTERCEPTOR_INFO_TYPE:
4213 case CALL_HANDLER_INFO_TYPE:
4214 case OBJECT_TEMPLATE_INFO_TYPE: 4213 case OBJECT_TEMPLATE_INFO_TYPE:
4215 case ALLOCATION_MEMENTO_TYPE: 4214 case ALLOCATION_MEMENTO_TYPE:
4216 case TYPE_FEEDBACK_INFO_TYPE:
4217 case ALIASED_ARGUMENTS_ENTRY_TYPE: 4215 case ALIASED_ARGUMENTS_ENTRY_TYPE:
4218 case PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE: 4216 case PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE:
4219 case PROMISE_REACTION_JOB_INFO_TYPE: 4217 case PROMISE_REACTION_JOB_INFO_TYPE:
4220 case DEBUG_INFO_TYPE: 4218 case DEBUG_INFO_TYPE:
4221 case BREAK_POINT_INFO_TYPE:
4222 case STACK_FRAME_INFO_TYPE: 4219 case STACK_FRAME_INFO_TYPE:
4223 case CELL_TYPE: 4220 case CELL_TYPE:
4224 case WEAK_CELL_TYPE: 4221 case WEAK_CELL_TYPE:
4225 case PROTOTYPE_INFO_TYPE: 4222 case PROTOTYPE_INFO_TYPE:
4226 case TUPLE2_TYPE: 4223 case TUPLE2_TYPE:
4227 case TUPLE3_TYPE: 4224 case TUPLE3_TYPE:
4228 case CONSTANT_ELEMENTS_PAIR_TYPE:
4229 case ASYNC_GENERATOR_REQUEST_TYPE: 4225 case ASYNC_GENERATOR_REQUEST_TYPE:
4226 case PADDING_TYPE_1:
4227 case PADDING_TYPE_2:
4228 case PADDING_TYPE_3:
4229 case PADDING_TYPE_4:
4230 OFStream os(stderr); 4230 OFStream os(stderr);
4231 os << "[couldn't handle instance type " << map->instance_type() << "]" 4231 os << "[couldn't handle instance type " << map->instance_type() << "]"
4232 << std::endl; 4232 << std::endl;
4233 UNREACHABLE(); 4233 UNREACHABLE();
4234 break; 4234 break;
4235 } 4235 }
4236 UNREACHABLE(); 4236 UNREACHABLE();
4237 return Handle<Object>::null(); 4237 return Handle<Object>::null();
4238 } 4238 }
4239 4239
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
4463 CHECK(value_info->IsMaterializedObject()); 4463 CHECK(value_info->IsMaterializedObject());
4464 4464
4465 value_info->value_ = 4465 value_info->value_ =
4466 Handle<Object>(previously_materialized_objects->get(i), isolate_); 4466 Handle<Object>(previously_materialized_objects->get(i), isolate_);
4467 } 4467 }
4468 } 4468 }
4469 } 4469 }
4470 4470
4471 } // namespace internal 4471 } // namespace internal
4472 } // namespace v8 4472 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/types.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698