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

Side by Side Diff: src/factory.cc

Issue 2607993003: FFI Compiler based on code stub assembler (Closed)
Patch Set: Introduce FFIAssembler class 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 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after
1377 DCHECK(!map->IsUndefined(isolate())); 1377 DCHECK(!map->IsUndefined(isolate()));
1378 DCHECK( 1378 DCHECK(
1379 map.is_identical_to(isolate()->sloppy_function_map()) || 1379 map.is_identical_to(isolate()->sloppy_function_map()) ||
1380 map.is_identical_to(isolate()->sloppy_function_without_prototype_map()) || 1380 map.is_identical_to(isolate()->sloppy_function_without_prototype_map()) ||
1381 map.is_identical_to( 1381 map.is_identical_to(
1382 isolate()->sloppy_function_with_readonly_prototype_map()) || 1382 isolate()->sloppy_function_with_readonly_prototype_map()) ||
1383 map.is_identical_to(isolate()->strict_function_map()) || 1383 map.is_identical_to(isolate()->strict_function_map()) ||
1384 map.is_identical_to(isolate()->strict_function_without_prototype_map()) || 1384 map.is_identical_to(isolate()->strict_function_without_prototype_map()) ||
1385 // TODO(titzer): wasm_function_map() could be undefined here. ugly. 1385 // TODO(titzer): wasm_function_map() could be undefined here. ugly.
1386 (*map == context->get(Context::WASM_FUNCTION_MAP_INDEX)) || 1386 (*map == context->get(Context::WASM_FUNCTION_MAP_INDEX)) ||
1387 (*map == context->get(Context::NATIVE_FUNCTION_MAP_INDEX)) ||
1387 map.is_identical_to(isolate()->proxy_function_map())); 1388 map.is_identical_to(isolate()->proxy_function_map()));
1388 return NewFunction(map, info, context); 1389 return NewFunction(map, info, context);
1389 } 1390 }
1390 1391
1391 1392
1392 Handle<JSFunction> Factory::NewFunction(Handle<String> name) { 1393 Handle<JSFunction> Factory::NewFunction(Handle<String> name) {
1393 return NewFunction( 1394 return NewFunction(
1394 isolate()->sloppy_function_map(), name, MaybeHandle<Code>()); 1395 isolate()->sloppy_function_map(), name, MaybeHandle<Code>());
1395 } 1396 }
1396 1397
(...skipping 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after
2778 Handle<AccessorInfo> prototype = 2779 Handle<AccessorInfo> prototype =
2779 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs); 2780 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs);
2780 Descriptor d = Descriptor::AccessorConstant( 2781 Descriptor d = Descriptor::AccessorConstant(
2781 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs); 2782 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs);
2782 map->AppendDescriptor(&d); 2783 map->AppendDescriptor(&d);
2783 } 2784 }
2784 } 2785 }
2785 2786
2786 } // namespace internal 2787 } // namespace internal
2787 } // namespace v8 2788 } // namespace v8
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/ffi/OWNERS » ('j') | src/ffi/ffi-compiler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698