Changeset 267371 in webkit for trunk/Source/JavaScriptCore/llint/LLIntData.cpp
- Timestamp:
- Sep 21, 2020, 3:01:12 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/llint/LLIntData.cpp
r262054 r267371 1 1 /* 2 * Copyright (C) 2011-20 18Apple Inc. All rights reserved.2 * Copyright (C) 2011-2020 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 29 29 #include "ArithProfile.h" 30 30 #include "CodeBlock.h" 31 #include "JSCConfig.h" 31 32 #include "LLIntCLoop.h" 32 33 #include "Opcode.h" … … 39 40 40 41 namespace LLInt { 41 42 43 uint8_t Data::s_exceptionInstructions[maxOpcodeLength + 1] = { };44 uint8_t Data::s_wasmExceptionInstructions[maxOpcodeLength + 1] = { };45 Opcode g_opcodeMap[numOpcodeIDs + numWasmOpcodeIDs] = { };46 Opcode g_opcodeMapWide16[numOpcodeIDs + numWasmOpcodeIDs] = { };47 Opcode g_opcodeMapWide32[numOpcodeIDs + numWasmOpcodeIDs] = { };48 42 49 43 #if !ENABLE(C_LOOP) … … 62 56 63 57 #else // !ENABLE(C_LOOP) 64 llint_entry(&g_ opcodeMap, &g_opcodeMapWide16, &g_opcodeMapWide32);58 llint_entry(&g_jscConfig.llint.opcodeMap, &g_jscConfig.llint.opcodeMapWide16, &g_jscConfig.llint.opcodeMapWide32); 65 59 66 60 #if ENABLE(WEBASSEMBLY) 67 wasm_entry(&g_ opcodeMap[numOpcodeIDs], &g_opcodeMapWide16[numOpcodeIDs], &g_opcodeMapWide32[numOpcodeIDs]);61 wasm_entry(&g_jscConfig.llint.opcodeMap[numOpcodeIDs], &g_jscConfig.llint.opcodeMapWide16[numOpcodeIDs], &g_jscConfig.llint.opcodeMapWide32[numOpcodeIDs]); 68 62 #endif // ENABLE(WEBASSEMBLY) 69 63 70 64 for (int i = 0; i < numOpcodeIDs + numWasmOpcodeIDs; ++i) { 71 g_ opcodeMap[i] = tagCodePtr(g_opcodeMap[i], BytecodePtrTag);72 g_ opcodeMapWide16[i] = tagCodePtr(g_opcodeMapWide16[i], BytecodePtrTag);73 g_ opcodeMapWide32[i] = tagCodePtr(g_opcodeMapWide32[i], BytecodePtrTag);65 g_jscConfig.llint.opcodeMap[i] = tagCodePtr(g_jscConfig.llint.opcodeMap[i], BytecodePtrTag); 66 g_jscConfig.llint.opcodeMapWide16[i] = tagCodePtr(g_jscConfig.llint.opcodeMapWide16[i], BytecodePtrTag); 67 g_jscConfig.llint.opcodeMapWide32[i] = tagCodePtr(g_jscConfig.llint.opcodeMapWide32[i], BytecodePtrTag); 74 68 } 75 69 76 70 ASSERT(llint_throw_from_slow_path_trampoline < UINT8_MAX); 77 71 for (unsigned i = 0; i < maxOpcodeLength + 1; ++i) { 78 Data::s_exceptionInstructions[i] = llint_throw_from_slow_path_trampoline;79 Data::s_wasmExceptionInstructions[i] = wasm_throw_from_slow_path_trampoline;72 g_jscConfig.llint.exceptionInstructions[i] = llint_throw_from_slow_path_trampoline; 73 g_jscConfig.llint.wasmExceptionInstructions[i] = wasm_throw_from_slow_path_trampoline; 80 74 } 81 75 #endif // ENABLE(C_LOOP)
Note:
See TracChangeset
for help on using the changeset viewer.