Ignore:
Timestamp:
Jul 28, 2015, 8:27:23 PM (10 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r187531.
https://bugs.webkit.org/show_bug.cgi?id=147397

Broke Windows bild (Requested by smfr on #webkit).

Reverted changeset:

"Implement WebAssembly module parser"
https://bugs.webkit.org/show_bug.cgi?id=147293
http://trac.webkit.org/changeset/187531

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jsc.cpp

    r187531 r187538  
    4444#include "JSProxy.h"
    4545#include "JSString.h"
    46 #include "JSWASMModule.h"
    4746#include "ProfilerDatabase.h"
    4847#include "SamplingTool.h"
     
    5251#include "TestRunnerUtils.h"
    5352#include "TypeProfilerLog.h"
    54 #include "WASMModuleParser.h"
    5553#include <math.h>
    5654#include <stdio.h>
     
    495493static EncodedJSValue JSC_HOST_CALL functionHasBasicBlockExecuted(ExecState*);
    496494static EncodedJSValue JSC_HOST_CALL functionEnableExceptionFuzz(ExecState*);
    497 #if ENABLE(WEBASSEMBLY)
    498 static EncodedJSValue JSC_HOST_CALL functionLoadWebAssembly(ExecState*);
    499 #endif
    500495
    501496#if ENABLE(SAMPLING_FLAGS)
     
    661656        addFunction(vm, "enableExceptionFuzz", functionEnableExceptionFuzz, 0);
    662657       
    663 #if ENABLE(WEBASSEMBLY)
    664         addFunction(vm, "loadWebAssembly", functionLoadWebAssembly, 1);
    665 #endif
    666 
    667658        JSArray* array = constructEmptyArray(globalExec(), 0);
    668659        for (size_t i = 0; i < arguments.size(); ++i)
     
    11921183    return JSValue::encode(jsUndefined());
    11931184}
    1194 
    1195 #if ENABLE(WEBASSEMBLY)
    1196 EncodedJSValue JSC_HOST_CALL functionLoadWebAssembly(ExecState* exec)
    1197 {
    1198     String fileName = exec->argument(0).toString(exec)->value(exec);
    1199     Vector<char> buffer;
    1200     if (!fillBufferWithContentsOfFile(fileName, buffer))
    1201         return JSValue::encode(exec->vm().throwException(exec, createError(exec, ASCIILiteral("Could not open file."))));
    1202     RefPtr<WebAssemblySourceProvider> sourceProvider = WebAssemblySourceProvider::create(reinterpret_cast<Vector<uint8_t>&>(buffer), fileName);
    1203     SourceCode source(sourceProvider);
    1204     String errorMessage;
    1205     JSWASMModule* module = parseWebAssembly(exec, source, errorMessage);
    1206     if (!module)
    1207         return JSValue::encode(exec->vm().throwException(exec, createSyntaxError(exec, errorMessage)));
    1208     return JSValue::encode(module);
    1209 }
    1210 #endif
    12111185
    12121186// Use SEH for Release builds only to get rid of the crash report dialog
Note: See TracChangeset for help on using the changeset viewer.