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

Side by Side Diff: src/factory.cc

Issue 2607993003: FFI Compiler based on code stub assembler (Closed)
Patch Set: Rebase Created 3 years, 11 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
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/factory.h" 5 #include "src/factory.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/allocation-site-scopes.h" 8 #include "src/allocation-site-scopes.h"
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after
1404 DCHECK(!map->IsUndefined(isolate())); 1404 DCHECK(!map->IsUndefined(isolate()));
1405 DCHECK( 1405 DCHECK(
1406 map.is_identical_to(isolate()->sloppy_function_map()) || 1406 map.is_identical_to(isolate()->sloppy_function_map()) ||
1407 map.is_identical_to(isolate()->sloppy_function_without_prototype_map()) || 1407 map.is_identical_to(isolate()->sloppy_function_without_prototype_map()) ||
1408 map.is_identical_to( 1408 map.is_identical_to(
1409 isolate()->sloppy_function_with_readonly_prototype_map()) || 1409 isolate()->sloppy_function_with_readonly_prototype_map()) ||
1410 map.is_identical_to(isolate()->strict_function_map()) || 1410 map.is_identical_to(isolate()->strict_function_map()) ||
1411 map.is_identical_to(isolate()->strict_function_without_prototype_map()) || 1411 map.is_identical_to(isolate()->strict_function_without_prototype_map()) ||
1412 // TODO(titzer): wasm_function_map() could be undefined here. ugly. 1412 // TODO(titzer): wasm_function_map() could be undefined here. ugly.
1413 (*map == context->get(Context::WASM_FUNCTION_MAP_INDEX)) || 1413 (*map == context->get(Context::WASM_FUNCTION_MAP_INDEX)) ||
1414 (*map == context->get(Context::NATIVE_FUNCTION_MAP_INDEX)) ||
1414 map.is_identical_to(isolate()->proxy_function_map())); 1415 map.is_identical_to(isolate()->proxy_function_map()));
1415 return NewFunction(map, info, context); 1416 return NewFunction(map, info, context);
1416 } 1417 }
1417 1418
1418 1419
1419 Handle<JSFunction> Factory::NewFunction(Handle<String> name) { 1420 Handle<JSFunction> Factory::NewFunction(Handle<String> name) {
1420 return NewFunction( 1421 return NewFunction(
1421 isolate()->sloppy_function_map(), name, MaybeHandle<Code>()); 1422 isolate()->sloppy_function_map(), name, MaybeHandle<Code>());
1422 } 1423 }
1423 1424
(...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after
2799 Handle<AccessorInfo> prototype = 2800 Handle<AccessorInfo> prototype =
2800 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs); 2801 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs);
2801 Descriptor d = Descriptor::AccessorConstant( 2802 Descriptor d = Descriptor::AccessorConstant(
2802 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs); 2803 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs);
2803 map->AppendDescriptor(&d); 2804 map->AppendDescriptor(&d);
2804 } 2805 }
2805 } 2806 }
2806 2807
2807 } // namespace internal 2808 } // namespace internal
2808 } // namespace v8 2809 } // namespace v8
OLDNEW
« src/compiler/ffi-compiler.cc ('K') | « src/contexts.h ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698