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

Side by Side Diff: src/objects.cc

Issue 1922443002: [turbofan] Introduce Oddball::to_number_raw and use it for change lowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/objects.h ('k') | src/objects-inl.h » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/objects.h" 5 #include "src/objects.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <iomanip> 8 #include <iomanip>
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 12770 matching lines...) Expand 10 before | Expand all | Expand 10 after
12781 return builder.Finish().ToHandleChecked(); 12781 return builder.Finish().ToHandleChecked();
12782 } 12782 }
12783 12783
12784 void Oddball::Initialize(Isolate* isolate, Handle<Oddball> oddball, 12784 void Oddball::Initialize(Isolate* isolate, Handle<Oddball> oddball,
12785 const char* to_string, Handle<Object> to_number, 12785 const char* to_string, Handle<Object> to_number,
12786 bool to_boolean, const char* type_of, byte kind) { 12786 bool to_boolean, const char* type_of, byte kind) {
12787 Handle<String> internalized_to_string = 12787 Handle<String> internalized_to_string =
12788 isolate->factory()->InternalizeUtf8String(to_string); 12788 isolate->factory()->InternalizeUtf8String(to_string);
12789 Handle<String> internalized_type_of = 12789 Handle<String> internalized_type_of =
12790 isolate->factory()->InternalizeUtf8String(type_of); 12790 isolate->factory()->InternalizeUtf8String(type_of);
12791 oddball->set_to_number_raw(to_number->Number());
12791 oddball->set_to_boolean(isolate->heap()->ToBoolean(to_boolean)); 12792 oddball->set_to_boolean(isolate->heap()->ToBoolean(to_boolean));
12792 oddball->set_to_number(*to_number); 12793 oddball->set_to_number(*to_number);
12793 oddball->set_to_string(*internalized_to_string); 12794 oddball->set_to_string(*internalized_to_string);
12794 oddball->set_type_of(*internalized_type_of); 12795 oddball->set_type_of(*internalized_type_of);
12795 oddball->set_kind(kind); 12796 oddball->set_kind(kind);
12796 } 12797 }
12797 12798
12798 void Script::SetEvalOrigin(Handle<Script> script, 12799 void Script::SetEvalOrigin(Handle<Script> script,
12799 Handle<SharedFunctionInfo> outer_info, 12800 Handle<SharedFunctionInfo> outer_info,
12800 int eval_position) { 12801 int eval_position) {
(...skipping 6253 matching lines...) Expand 10 before | Expand all | Expand 10 after
19054 if (cell->value() != *new_value) { 19055 if (cell->value() != *new_value) {
19055 cell->set_value(*new_value); 19056 cell->set_value(*new_value);
19056 Isolate* isolate = cell->GetIsolate(); 19057 Isolate* isolate = cell->GetIsolate();
19057 cell->dependent_code()->DeoptimizeDependentCodeGroup( 19058 cell->dependent_code()->DeoptimizeDependentCodeGroup(
19058 isolate, DependentCode::kPropertyCellChangedGroup); 19059 isolate, DependentCode::kPropertyCellChangedGroup);
19059 } 19060 }
19060 } 19061 }
19061 19062
19062 } // namespace internal 19063 } // namespace internal
19063 } // namespace v8 19064 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698