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

Side by Side Diff: src/objects.cc

Issue 2819653002: Merged: Squashed multiple commits. (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
« 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 <memory> 9 #include <memory>
10 #include <sstream> 10 #include <sstream>
(...skipping 12891 matching lines...) Expand 10 before | Expand all | Expand 10 after
12902 return builder.Finish().ToHandleChecked(); 12902 return builder.Finish().ToHandleChecked();
12903 } 12903 }
12904 12904
12905 void Oddball::Initialize(Isolate* isolate, Handle<Oddball> oddball, 12905 void Oddball::Initialize(Isolate* isolate, Handle<Oddball> oddball,
12906 const char* to_string, Handle<Object> to_number, 12906 const char* to_string, Handle<Object> to_number,
12907 const char* type_of, byte kind) { 12907 const char* type_of, byte kind) {
12908 Handle<String> internalized_to_string = 12908 Handle<String> internalized_to_string =
12909 isolate->factory()->InternalizeUtf8String(to_string); 12909 isolate->factory()->InternalizeUtf8String(to_string);
12910 Handle<String> internalized_type_of = 12910 Handle<String> internalized_type_of =
12911 isolate->factory()->InternalizeUtf8String(type_of); 12911 isolate->factory()->InternalizeUtf8String(type_of);
12912 oddball->set_to_number_raw(to_number->Number()); 12912 if (to_number->IsHeapNumber()) {
12913 oddball->set_to_number_raw_as_bits(
12914 Handle<HeapNumber>::cast(to_number)->value_as_bits());
12915 } else {
12916 oddball->set_to_number_raw(to_number->Number());
12917 }
12913 oddball->set_to_number(*to_number); 12918 oddball->set_to_number(*to_number);
12914 oddball->set_to_string(*internalized_to_string); 12919 oddball->set_to_string(*internalized_to_string);
12915 oddball->set_type_of(*internalized_type_of); 12920 oddball->set_type_of(*internalized_type_of);
12916 oddball->set_kind(kind); 12921 oddball->set_kind(kind);
12917 } 12922 }
12918 12923
12919 void Script::SetEvalOrigin(Handle<Script> script, 12924 void Script::SetEvalOrigin(Handle<Script> script,
12920 Handle<SharedFunctionInfo> outer_info, 12925 Handle<SharedFunctionInfo> outer_info,
12921 int eval_position) { 12926 int eval_position) {
12922 if (eval_position == kNoSourcePosition) { 12927 if (eval_position == kNoSourcePosition) {
(...skipping 7232 matching lines...) Expand 10 before | Expand all | Expand 10 after
20155 // depend on this. 20160 // depend on this.
20156 return DICTIONARY_ELEMENTS; 20161 return DICTIONARY_ELEMENTS;
20157 } 20162 }
20158 DCHECK_LE(kind, LAST_ELEMENTS_KIND); 20163 DCHECK_LE(kind, LAST_ELEMENTS_KIND);
20159 return kind; 20164 return kind;
20160 } 20165 }
20161 } 20166 }
20162 20167
20163 } // namespace internal 20168 } // namespace internal
20164 } // namespace v8 20169 } // 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