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

Side by Side Diff: src/factory.cc

Issue 2607993003: FFI Compiler based on code stub assembler (Closed)
Patch Set: Move FFIAssembler from .h to .cc 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
« no previous file with comments | « src/contexts.h ('k') | src/ffi/OWNERS » ('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/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 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
2785 Handle<AccessorInfo> prototype = 2786 Handle<AccessorInfo> prototype =
2786 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs); 2787 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs);
2787 Descriptor d = Descriptor::AccessorConstant( 2788 Descriptor d = Descriptor::AccessorConstant(
2788 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs); 2789 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs);
2789 map->AppendDescriptor(&d); 2790 map->AppendDescriptor(&d);
2790 } 2791 }
2791 } 2792 }
2792 2793
2793 } // namespace internal 2794 } // namespace internal
2794 } // namespace v8 2795 } // namespace v8
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/ffi/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698