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

Side by Side Diff: src/objects.cc

Issue 1762323002: [compiler] Move ClearExceptionFlag into Compiler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: More places. Created 4 years, 9 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/globals.h ('k') | src/runtime/runtime-compiler.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 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 12969 matching lines...) Expand 10 before | Expand all | Expand 10 after
12980 #endif 12980 #endif
12981 12981
12982 12982
12983 void JSFunction::EnsureHasInitialMap(Handle<JSFunction> function) { 12983 void JSFunction::EnsureHasInitialMap(Handle<JSFunction> function) {
12984 DCHECK(function->IsConstructor() || function->shared()->is_generator()); 12984 DCHECK(function->IsConstructor() || function->shared()->is_generator());
12985 if (function->has_initial_map()) return; 12985 if (function->has_initial_map()) return;
12986 Isolate* isolate = function->GetIsolate(); 12986 Isolate* isolate = function->GetIsolate();
12987 12987
12988 // The constructor should be compiled for the optimization hints to be 12988 // The constructor should be compiled for the optimization hints to be
12989 // available. 12989 // available.
12990 Compiler::Compile(function, CLEAR_EXCEPTION); 12990 Compiler::Compile(function, Compiler::CLEAR_EXCEPTION);
12991 12991
12992 // First create a new map with the size and number of in-object properties 12992 // First create a new map with the size and number of in-object properties
12993 // suggested by the function. 12993 // suggested by the function.
12994 InstanceType instance_type; 12994 InstanceType instance_type;
12995 if (function->shared()->is_generator()) { 12995 if (function->shared()->is_generator()) {
12996 instance_type = JS_GENERATOR_OBJECT_TYPE; 12996 instance_type = JS_GENERATOR_OBJECT_TYPE;
12997 } else { 12997 } else {
12998 instance_type = JS_OBJECT_TYPE; 12998 instance_type = JS_OBJECT_TYPE;
12999 } 12999 }
13000 int instance_size; 13000 int instance_size;
(...skipping 6755 matching lines...) Expand 10 before | Expand all | Expand 10 after
19756 if (cell->value() != *new_value) { 19756 if (cell->value() != *new_value) {
19757 cell->set_value(*new_value); 19757 cell->set_value(*new_value);
19758 Isolate* isolate = cell->GetIsolate(); 19758 Isolate* isolate = cell->GetIsolate();
19759 cell->dependent_code()->DeoptimizeDependentCodeGroup( 19759 cell->dependent_code()->DeoptimizeDependentCodeGroup(
19760 isolate, DependentCode::kPropertyCellChangedGroup); 19760 isolate, DependentCode::kPropertyCellChangedGroup);
19761 } 19761 }
19762 } 19762 }
19763 19763
19764 } // namespace internal 19764 } // namespace internal
19765 } // namespace v8 19765 } // namespace v8
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/runtime/runtime-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698