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

Side by Side Diff: src/objects.cc

Issue 952303002: Remove NativeContext from Literal array, since we always create the literals in the native context … (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments Created 5 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/objects.h ('k') | src/preparser.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 <iomanip> 5 #include <iomanip>
6 #include <sstream> 6 #include <sstream>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 10215 matching lines...) Expand 10 before | Expand all | Expand 10 after
10226 shared()->set_instance_class_name(name); 10226 shared()->set_instance_class_name(name);
10227 } 10227 }
10228 10228
10229 10229
10230 void JSFunction::PrintName(FILE* out) { 10230 void JSFunction::PrintName(FILE* out) {
10231 SmartArrayPointer<char> name = shared()->DebugName()->ToCString(); 10231 SmartArrayPointer<char> name = shared()->DebugName()->ToCString();
10232 PrintF(out, "%s", name.get()); 10232 PrintF(out, "%s", name.get());
10233 } 10233 }
10234 10234
10235 10235
10236 Context* JSFunction::NativeContextFromLiterals(FixedArray* literals) {
10237 return Context::cast(literals->get(JSFunction::kLiteralNativeContextIndex));
10238 }
10239
10240
10241 // The filter is a pattern that matches function names in this way: 10236 // The filter is a pattern that matches function names in this way:
10242 // "*" all; the default 10237 // "*" all; the default
10243 // "-" all but the top-level function 10238 // "-" all but the top-level function
10244 // "-name" all but the function "name" 10239 // "-name" all but the function "name"
10245 // "" only the top-level function 10240 // "" only the top-level function
10246 // "name" only the function "name" 10241 // "name" only the function "name"
10247 // "name*" only functions starting with "name" 10242 // "name*" only functions starting with "name"
10248 // "~" none; the tilde is not an identifier 10243 // "~" none; the tilde is not an identifier
10249 bool JSFunction::PassesFilter(const char* raw_filter) { 10244 bool JSFunction::PassesFilter(const char* raw_filter) {
10250 if (*raw_filter == '*') return true; 10245 if (*raw_filter == '*') return true;
(...skipping 6903 matching lines...) Expand 10 before | Expand all | Expand 10 after
17154 CompilationInfo* info) { 17149 CompilationInfo* info) {
17155 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo( 17150 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo(
17156 handle(cell->dependent_code(), info->isolate()), 17151 handle(cell->dependent_code(), info->isolate()),
17157 DependentCode::kPropertyCellChangedGroup, info->object_wrapper()); 17152 DependentCode::kPropertyCellChangedGroup, info->object_wrapper());
17158 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); 17153 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes);
17159 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( 17154 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add(
17160 cell, info->zone()); 17155 cell, info->zone());
17161 } 17156 }
17162 17157
17163 } } // namespace v8::internal 17158 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/preparser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698