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

Side by Side Diff: src/bootstrapper.cc

Issue 1221383003: Fix performance regression introduced in r28961 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | src/runtime/runtime-function.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 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/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/base/utils/random-number-generator.h" 9 #include "src/base/utils/random-number-generator.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 PropertyAttributes rw_attribs = 591 PropertyAttributes rw_attribs =
592 static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE); 592 static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE);
593 PropertyAttributes ro_attribs = 593 PropertyAttributes ro_attribs =
594 static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE | READ_ONLY); 594 static_cast<PropertyAttributes>(DONT_ENUM | DONT_DELETE | READ_ONLY);
595 PropertyAttributes roc_attribs = 595 PropertyAttributes roc_attribs =
596 static_cast<PropertyAttributes>(DONT_ENUM | READ_ONLY); 596 static_cast<PropertyAttributes>(DONT_ENUM | READ_ONLY);
597 597
598 // Add length. 598 // Add length.
599 if (function_mode == BOUND_FUNCTION) { 599 if (function_mode == BOUND_FUNCTION) {
600 Handle<String> length_string = isolate()->factory()->length_string(); 600 Handle<String> length_string = isolate()->factory()->length_string();
601 DataDescriptor d(length_string, 0, ro_attribs, Representation::Tagged()); 601 DataDescriptor d(length_string, 0, roc_attribs, Representation::Tagged());
602 map->AppendDescriptor(&d); 602 map->AppendDescriptor(&d);
603 } else { 603 } else {
604 DCHECK(function_mode == FUNCTION_WITH_WRITEABLE_PROTOTYPE || 604 DCHECK(function_mode == FUNCTION_WITH_WRITEABLE_PROTOTYPE ||
605 function_mode == FUNCTION_WITH_READONLY_PROTOTYPE || 605 function_mode == FUNCTION_WITH_READONLY_PROTOTYPE ||
606 function_mode == FUNCTION_WITHOUT_PROTOTYPE); 606 function_mode == FUNCTION_WITHOUT_PROTOTYPE);
607 Handle<AccessorInfo> length = 607 Handle<AccessorInfo> length =
608 Accessors::FunctionLengthInfo(isolate(), roc_attribs); 608 Accessors::FunctionLengthInfo(isolate(), roc_attribs);
609 AccessorConstantDescriptor d(Handle<Name>(Name::cast(length->name())), 609 AccessorConstantDescriptor d(Handle<Name>(Name::cast(length->name())),
610 length, roc_attribs); 610 length, roc_attribs);
611 map->AppendDescriptor(&d); 611 map->AppendDescriptor(&d);
(...skipping 2586 matching lines...) Expand 10 before | Expand all | Expand 10 after
3198 } 3198 }
3199 3199
3200 3200
3201 // Called when the top-level V8 mutex is destroyed. 3201 // Called when the top-level V8 mutex is destroyed.
3202 void Bootstrapper::FreeThreadResources() { 3202 void Bootstrapper::FreeThreadResources() {
3203 DCHECK(!IsActive()); 3203 DCHECK(!IsActive());
3204 } 3204 }
3205 3205
3206 } // namespace internal 3206 } // namespace internal
3207 } // namespace v8 3207 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/runtime/runtime-function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698