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

Side by Side Diff: runtime/vm/code_generator.cc

Issue 2488423004: Fix build. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | runtime/vm/code_patcher_ia32.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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/code_generator.h" 5 #include "vm/code_generator.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/ast.h" 8 #include "vm/ast.h"
9 #include "vm/code_patcher.h" 9 #include "vm/code_patcher.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 1942 matching lines...) Expand 10 before | Expand all | Expand 10 after
1953 ASSERT(!unoptimized_code.IsNull()); 1953 ASSERT(!unoptimized_code.IsNull());
1954 // The switch to unoptimized code may have already occurred. 1954 // The switch to unoptimized code may have already occurred.
1955 if (function.HasOptimizedCode()) { 1955 if (function.HasOptimizedCode()) {
1956 function.SwitchToUnoptimizedCode(); 1956 function.SwitchToUnoptimizedCode();
1957 } 1957 }
1958 1958
1959 #if defined(TARGET_ARCH_DBC) 1959 #if defined(TARGET_ARCH_DBC)
1960 const Instructions& instrs = 1960 const Instructions& instrs =
1961 Instructions::Handle(zone, optimized_code.instructions()); 1961 Instructions::Handle(zone, optimized_code.instructions());
1962 { 1962 {
1963 WritableInstructionsScope writable(instrs.PayloadStart(), instrs.size()); 1963 WritableInstructionsScope writable(instrs.PayloadStart(), instrs.Size());
1964 CodePatcher::InsertDeoptimizationCallAt(frame->pc()); 1964 CodePatcher::InsertDeoptimizationCallAt(frame->pc());
1965 if (FLAG_trace_patching) { 1965 if (FLAG_trace_patching) {
1966 const String& name = String::Handle(function.name()); 1966 const String& name = String::Handle(function.name());
1967 OS::PrintErr("InsertDeoptimizationCallAt: 0x%" Px " for %s\n", 1967 OS::PrintErr("InsertDeoptimizationCallAt: 0x%" Px " for %s\n",
1968 frame->pc(), name.ToCString()); 1968 frame->pc(), name.ToCString());
1969 } 1969 }
1970 const ExceptionHandlers& handlers = 1970 const ExceptionHandlers& handlers =
1971 ExceptionHandlers::Handle(zone, optimized_code.exception_handlers()); 1971 ExceptionHandlers::Handle(zone, optimized_code.exception_handlers());
1972 RawExceptionHandlers::HandlerInfo info; 1972 RawExceptionHandlers::HandlerInfo info;
1973 for (intptr_t i = 0; i < handlers.num_entries(); ++i) { 1973 for (intptr_t i = 0; i < handlers.num_entries(); ++i) {
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
2281 const intptr_t elm_size = old_data.ElementSizeInBytes(); 2281 const intptr_t elm_size = old_data.ElementSizeInBytes();
2282 const TypedData& new_data = 2282 const TypedData& new_data =
2283 TypedData::Handle(TypedData::New(cid, new_size, Heap::kOld)); 2283 TypedData::Handle(TypedData::New(cid, new_size, Heap::kOld));
2284 TypedData::Copy(new_data, 0, old_data, 0, old_size * elm_size); 2284 TypedData::Copy(new_data, 0, old_data, 0, old_size * elm_size);
2285 typed_data_cell.SetAt(0, new_data); 2285 typed_data_cell.SetAt(0, new_data);
2286 arguments.SetReturn(new_data); 2286 arguments.SetReturn(new_data);
2287 } 2287 }
2288 2288
2289 2289
2290 } // namespace dart 2290 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/code_patcher_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698