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

Side by Side Diff: src/factory.cc

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: addressed comments 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/factory.h" 5 #include "src/factory.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/allocation-site-scopes.h" 8 #include "src/allocation-site-scopes.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
1025 Handle<Script> script = Handle<Script>::cast(NewStruct(SCRIPT_TYPE)); 1025 Handle<Script> script = Handle<Script>::cast(NewStruct(SCRIPT_TYPE));
1026 script->set_source(*source); 1026 script->set_source(*source);
1027 script->set_name(heap->undefined_value()); 1027 script->set_name(heap->undefined_value());
1028 script->set_id(isolate()->heap()->NextScriptId()); 1028 script->set_id(isolate()->heap()->NextScriptId());
1029 script->set_line_offset(0); 1029 script->set_line_offset(0);
1030 script->set_column_offset(0); 1030 script->set_column_offset(0);
1031 script->set_context_data(heap->undefined_value()); 1031 script->set_context_data(heap->undefined_value());
1032 script->set_type(Script::TYPE_NORMAL); 1032 script->set_type(Script::TYPE_NORMAL);
1033 script->set_wrapper(heap->undefined_value()); 1033 script->set_wrapper(heap->undefined_value());
1034 script->set_line_ends(heap->undefined_value()); 1034 script->set_line_ends(heap->undefined_value());
1035 if (FLAG_trace_deopt) Script::InitLineEnds(script);
1035 script->set_eval_from_shared(heap->undefined_value()); 1036 script->set_eval_from_shared(heap->undefined_value());
1036 script->set_eval_from_position(0); 1037 script->set_eval_from_position(0);
1037 script->set_shared_function_infos(Smi::kZero); 1038 script->set_shared_function_infos(Smi::kZero);
1038 script->set_flags(0); 1039 script->set_flags(0);
1039 1040
1040 heap->set_script_list(*WeakFixedArray::Add(script_list(), script)); 1041 heap->set_script_list(*WeakFixedArray::Add(script_list(), script));
1041 return script; 1042 return script;
1042 } 1043 }
1043 1044
1044 1045
(...skipping 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after
2709 Handle<JSFixedArrayIterator>::cast(NewJSObjectFromMap(map)); 2710 Handle<JSFixedArrayIterator>::cast(NewJSObjectFromMap(map));
2710 iterator->set_initial_next(*next); 2711 iterator->set_initial_next(*next);
2711 iterator->set_array(*array); 2712 iterator->set_array(*array);
2712 iterator->set_index(0); 2713 iterator->set_index(0);
2713 iterator->InObjectPropertyAtPut(JSFixedArrayIterator::kNextIndex, *next); 2714 iterator->InObjectPropertyAtPut(JSFixedArrayIterator::kNextIndex, *next);
2714 return iterator; 2715 return iterator;
2715 } 2716 }
2716 2717
2717 } // namespace internal 2718 } // namespace internal
2718 } // namespace v8 2719 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698