Commit 19d279f8 authored by lrn@chromium.org's avatar lrn@chromium.org

X64: Move some methods in x64/ to their file and make codegen do int3.

Review URL: http://codereview.chromium.org/115567


git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2016 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent eec57b9b
This diff is collapsed.
......@@ -25,3 +25,40 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "v8.h"
#include "codegen-inl.h"
namespace v8 { namespace internal {
void Builtins::Generate_Adaptor(MacroAssembler* masm,
Builtins::CFunctionId id) {
masm->int3(); // UNIMPLEMENTED.
}
void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED.
}
void Builtins::Generate_FunctionApply(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED.
}
void Builtins::Generate_FunctionCall(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED.
}
void Builtins::Generate_JSConstructCall(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED.
}
void Builtins::Generate_JSConstructEntryTrampoline(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED.
}
void Builtins::Generate_JSEntryTrampoline(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED.
}
} } // namespace v8::internal
......@@ -25,3 +25,213 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "v8.h"
#include "macro-assembler.h"
#include "register-allocator-inl.h"
#include "codegen.h"
namespace v8 { namespace internal {
CodeGenerator::CodeGenerator(int buffer_size,
Handle<Script> script,
bool is_eval)
: is_eval_(is_eval),
script_(script),
deferred_(8),
masm_(new MacroAssembler(NULL, buffer_size)),
scope_(NULL),
frame_(NULL),
allocator_(NULL),
state_(NULL),
loop_nesting_(0),
function_return_is_shadowed_(false),
in_spilled_code_(false) {
}
void CodeGenerator::DeclareGlobals(Handle<FixedArray> a) {
UNIMPLEMENTED();
}
void CodeGenerator::GenCode(FunctionLiteral* a) {
masm_->int3(); // UNIMPLEMENTED
}
void CodeGenerator::GenerateFastCaseSwitchJumpTable(SwitchStatement* a,
int b,
int c,
Label* d,
Vector<Label*> e,
Vector<Label> f) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitStatements(ZoneList<Statement*>* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitBlock(Block* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitDeclaration(Declaration* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitExpressionStatement(ExpressionStatement* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitEmptyStatement(EmptyStatement* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitIfStatement(IfStatement* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitContinueStatement(ContinueStatement* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitBreakStatement(BreakStatement* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitReturnStatement(ReturnStatement* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitWithEnterStatement(WithEnterStatement* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitWithExitStatement(WithExitStatement* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitSwitchStatement(SwitchStatement* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitLoopStatement(LoopStatement* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitForInStatement(ForInStatement* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitTryCatch(TryCatch* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitTryFinally(TryFinally* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitFunctionLiteral(FunctionLiteral* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitFunctionBoilerplateLiteral(
FunctionBoilerplateLiteral* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitConditional(Conditional* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitSlot(Slot* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitVariableProxy(VariableProxy* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitLiteral(Literal* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitRegExpLiteral(RegExpLiteral* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitObjectLiteral(ObjectLiteral* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitArrayLiteral(ArrayLiteral* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitCatchExtensionObject(CatchExtensionObject* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitAssignment(Assignment* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitThrow(Throw* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitProperty(Property* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitCall(Call* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitCallEval(CallEval* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitCallNew(CallNew* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitCallRuntime(CallRuntime* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitUnaryOperation(UnaryOperation* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitCountOperation(CountOperation* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitBinaryOperation(BinaryOperation* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitCompareOperation(CompareOperation* a) {
UNIMPLEMENTED();
}
void CodeGenerator::VisitThisFunction(ThisFunction* a) {
UNIMPLEMENTED();
}
void CEntryStub::GenerateBody(MacroAssembler* masm, bool is_debug_break) {
masm->int3(); // TODO(X64): UNIMPLEMENTED.
}
void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) {
masm->int3(); // TODO(X64): UNIMPLEMENTED.
}
} } // namespace v8::internal
......@@ -25,3 +25,58 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "v8.h"
#include "codegen-inl.h"
#include "debug.h"
namespace v8 { namespace internal {
#ifdef ENABLE_DEBUGGER_SUPPORT
bool Debug::IsDebugBreakAtReturn(v8::internal::RelocInfo* rinfo) {
UNIMPLEMENTED();
return false;
}
void Debug::GenerateCallICDebugBreak(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED
}
void Debug::GenerateConstructCallDebugBreak(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED
}
void Debug::GenerateKeyedLoadICDebugBreak(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED
}
void Debug::GenerateKeyedStoreICDebugBreak(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED
}
void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED
}
void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED
}
void Debug::GenerateReturnDebugBreakEntry(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED
}
void Debug::GenerateStoreICDebugBreak(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED
}
void Debug::GenerateStubNoRegistersDebugBreak(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED
}
#endif // ENABLE_DEBUGGER_SUPPORT
} } // namespace v8::internal
......@@ -25,3 +25,151 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "v8.h"
#include "codegen-inl.h"
#include "ic-inl.h"
#include "runtime.h"
#include "stub-cache.h"
namespace v8 { namespace internal {
void KeyedLoadIC::ClearInlinedVersion(Address address) {
UNIMPLEMENTED();
}
void KeyedLoadIC::Generate(MacroAssembler* masm,
ExternalReference const& f) {
masm->int3(); // UNIMPLEMENTED.
}
void KeyedLoadIC::GenerateGeneric(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED.
}
void KeyedLoadIC::GenerateMiss(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED.
}
bool KeyedLoadIC::PatchInlinedLoad(Address address, Object* map) {
UNIMPLEMENTED();
return false;
}
Object* KeyedLoadStubCompiler::CompileLoadArrayLength(String* name) {
UNIMPLEMENTED();
return NULL;
}
Object* KeyedLoadStubCompiler::CompileLoadCallback(String* name,
JSObject* object,
JSObject* holder,
AccessorInfo* callback) {
UNIMPLEMENTED();
return NULL;
}
Object* KeyedLoadStubCompiler::CompileLoadConstant(String* name,
JSObject* object,
JSObject* holder,
Object* callback) {
UNIMPLEMENTED();
return NULL;
}
Object* KeyedLoadStubCompiler::CompileLoadField(String* name,
JSObject* object,
JSObject* holder,
int index) {
UNIMPLEMENTED();
return NULL;
}
Object* KeyedLoadStubCompiler::CompileLoadFunctionPrototype(String* name) {
UNIMPLEMENTED();
return NULL;
}
Object* KeyedLoadStubCompiler::CompileLoadInterceptor(JSObject* object,
JSObject* holder,
String* name) {
UNIMPLEMENTED();
return NULL;
}
Object* KeyedLoadStubCompiler::CompileLoadStringLength(String* name) {
UNIMPLEMENTED();
return NULL;
}
void KeyedStoreIC::Generate(MacroAssembler* masm, ExternalReference const& f) {
masm->int3(); // UNIMPLEMENTED.
}
void KeyedStoreIC::GenerateExtendStorage(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED.
}
void KeyedStoreIC::GenerateGeneric(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED.
}
Object* KeyedStoreStubCompiler::CompileStoreField(JSObject* object,
int index,
Map* transition,
String* name) {
UNIMPLEMENTED();
return NULL;
}
void LoadIC::ClearInlinedVersion(Address address) {
UNIMPLEMENTED();
}
void LoadIC::Generate(MacroAssembler* masm, ExternalReference const& f) {
masm->int3(); // UNIMPLEMENTED.
}
void LoadIC::GenerateArrayLength(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED.
}
void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED.
}
void LoadIC::GenerateMegamorphic(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED.
}
void LoadIC::GenerateMiss(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED.
}
void LoadIC::GenerateNormal(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED.
}
void LoadIC::GenerateStringLength(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED.
}
bool LoadIC::PatchInlinedLoad(Address address, Object* map, int index) {
UNIMPLEMENTED();
return false;
}
void StoreIC::Generate(MacroAssembler* masm, ExternalReference const& f) {
masm->int3(); // UNIMPLEMENTED.
}
void StoreIC::GenerateExtendStorage(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED.
}
void StoreIC::GenerateMegamorphic(MacroAssembler* masm) {
masm->int3(); // UNIMPLEMENTED.
}
} } // namespace v8::internal
......@@ -25,3 +25,23 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "v8.h"
#include "bootstrapper.h"
#include "codegen-inl.h"
namespace v8 { namespace internal {
MacroAssembler::MacroAssembler(void* buffer, int size)
: Assembler(buffer, size),
unresolved_(0),
generating_stub_(false),
allow_stub_calls_(true),
code_object_(Heap::undefined_value()) {
}
void MacroAssembler::TailCallRuntime(ExternalReference const& a, int b) {
UNIMPLEMENTED();
}
} } // namespace v8::internal
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment