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

Issue 10035028: MIPS: Implement rudimentary module linking. (Closed)

Created:
8 years, 8 months ago by rossberg
Modified:
8 years, 8 months ago
Reviewers:
CC:
v8-dev
Visibility:
Public.

Description

MIPS: Implement rudimentary module linking. Port r11336 (6dd4e844) Original commit message: Implement rudimentary module linking. Constructs the (generally cyclic) graph of module instance objects and populates their exports. Any exports other than nested modules are currently set to 'undefined' (but already present as properties). Details: - Added new type JSModule for instance objects: a JSObject carrying a context. - Statically allocate instance objects for all module literals (in parser 8-}). - Extend interfaces to record and unify concrete instance objects, and to support iteration over members. - Introduce new runtime function for pushing module contexts. - Generate code for allocating, initializing, and setting module contexts, and for populating instance objects from module literals. Currently, all non-module exports are still initialized with 'undefined'. - Module aliases are resolved statically, so no special code is required. - Make sure that code containing module constructs is never optimized (macrofy AST node construction flag setting while we're at it). - Add test case checking linkage. BUG= TEST= Committed: https://code.google.com/p/v8/source/detail?r=11374

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -10 lines) Patch
M src/mips/full-codegen-mips.cc View 4 chunks +20 lines, -10 lines 0 comments Download

Powered by Google App Engine
This is Rietveld 408576698