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

Side by Side Diff: src/deoptimizer.cc

Issue 2811183005: Do not use new struct type where unnecessary. (Closed)
Patch Set: 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
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 4176 matching lines...) Expand 10 before | Expand all | Expand 10 after
4187 case MODULE_TYPE: 4187 case MODULE_TYPE:
4188 case MODULE_INFO_ENTRY_TYPE: 4188 case MODULE_INFO_ENTRY_TYPE:
4189 case FREE_SPACE_TYPE: 4189 case FREE_SPACE_TYPE:
4190 #define FIXED_TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \ 4190 #define FIXED_TYPED_ARRAY_CASE(Type, type, TYPE, ctype, size) \
4191 case FIXED_##TYPE##_ARRAY_TYPE: 4191 case FIXED_##TYPE##_ARRAY_TYPE:
4192 TYPED_ARRAYS(FIXED_TYPED_ARRAY_CASE) 4192 TYPED_ARRAYS(FIXED_TYPED_ARRAY_CASE)
4193 #undef FIXED_TYPED_ARRAY_CASE 4193 #undef FIXED_TYPED_ARRAY_CASE
4194 case FILLER_TYPE: 4194 case FILLER_TYPE:
4195 case ACCESS_CHECK_INFO_TYPE: 4195 case ACCESS_CHECK_INFO_TYPE:
4196 case INTERCEPTOR_INFO_TYPE: 4196 case INTERCEPTOR_INFO_TYPE:
4197 case CALL_HANDLER_INFO_TYPE:
4198 case OBJECT_TEMPLATE_INFO_TYPE: 4197 case OBJECT_TEMPLATE_INFO_TYPE:
4199 case ALLOCATION_MEMENTO_TYPE: 4198 case ALLOCATION_MEMENTO_TYPE:
4200 case TYPE_FEEDBACK_INFO_TYPE:
4201 case ALIASED_ARGUMENTS_ENTRY_TYPE: 4199 case ALIASED_ARGUMENTS_ENTRY_TYPE:
4202 case PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE: 4200 case PROMISE_RESOLVE_THENABLE_JOB_INFO_TYPE:
4203 case PROMISE_REACTION_JOB_INFO_TYPE: 4201 case PROMISE_REACTION_JOB_INFO_TYPE:
4204 case DEBUG_INFO_TYPE: 4202 case DEBUG_INFO_TYPE:
4205 case BREAK_POINT_INFO_TYPE:
4206 case STACK_FRAME_INFO_TYPE: 4203 case STACK_FRAME_INFO_TYPE:
4207 case CELL_TYPE: 4204 case CELL_TYPE:
4208 case WEAK_CELL_TYPE: 4205 case WEAK_CELL_TYPE:
4209 case PROTOTYPE_INFO_TYPE: 4206 case PROTOTYPE_INFO_TYPE:
4210 case TUPLE2_TYPE: 4207 case TUPLE2_TYPE:
4211 case TUPLE3_TYPE: 4208 case TUPLE3_TYPE:
4212 case CONSTANT_ELEMENTS_PAIR_TYPE:
4213 case ASYNC_GENERATOR_REQUEST_TYPE: 4209 case ASYNC_GENERATOR_REQUEST_TYPE:
4210 case PADDING_TYPE_1:
4211 case PADDING_TYPE_2:
4212 case PADDING_TYPE_3:
4213 case PADDING_TYPE_4:
4214 OFStream os(stderr); 4214 OFStream os(stderr);
4215 os << "[couldn't handle instance type " << map->instance_type() << "]" 4215 os << "[couldn't handle instance type " << map->instance_type() << "]"
4216 << std::endl; 4216 << std::endl;
4217 UNREACHABLE(); 4217 UNREACHABLE();
4218 break; 4218 break;
4219 } 4219 }
4220 UNREACHABLE(); 4220 UNREACHABLE();
4221 return Handle<Object>::null(); 4221 return Handle<Object>::null();
4222 } 4222 }
4223 4223
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
4447 CHECK(value_info->IsMaterializedObject()); 4447 CHECK(value_info->IsMaterializedObject());
4448 4448
4449 value_info->value_ = 4449 value_info->value_ =
4450 Handle<Object>(previously_materialized_objects->get(i), isolate_); 4450 Handle<Object>(previously_materialized_objects->get(i), isolate_);
4451 } 4451 }
4452 } 4452 }
4453 } 4453 }
4454 4454
4455 } // namespace internal 4455 } // namespace internal
4456 } // namespace v8 4456 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/types.cc ('k') | src/factory.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698