OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |