Author: [email protected]
Date: Wed May 13 05:50:33 2009
New Revision: 1933

Modified:
    branches/bleeding_edge/src/x64/assembler-x64.cc

Log:
X64: Added dummy definitions of needed functions.
All functions added in assembler-x64.cc. They should be distributed to  
where they belong when they are implemented.

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


Modified: branches/bleeding_edge/src/x64/assembler-x64.cc
==============================================================================
--- branches/bleeding_edge/src/x64/assembler-x64.cc     (original)
+++ branches/bleeding_edge/src/x64/assembler-x64.cc     Wed May 13 05:50:33 2009
@@ -33,4 +33,497 @@

  Register no_reg = { -1 };

+
+} }  // namespace v8::internal
+
+
+// TODO(x64): Implement and move these to their correct cc-files:
+#include "assembler.h"
+#include "ast.h"
+#include "bootstrapper.h"
+#include "codegen-inl.h"
+#include "cpu.h"
+#include "debug.h"
+#include "disasm.h"
+#include "disassembler.h"
+#include "frames-inl.h"
+#include "x64/macro-assembler-x64.h"
+#include "x64/regexp-macro-assembler-x64.h"
+#include "ic-inl.h"
+#include "log.h"
+#include "macro-assembler.h"
+#include "parser.h"
+#include "regexp-macro-assembler.h"
+#include "regexp-stack.h"
+#include "register-allocator-inl.h"
+#include "register-allocator.h"
+#include "runtime.h"
+#include "scopes.h"
+#include "serialize.h"
+#include "stub-cache.h"
+#include "unicode.h"
+
+namespace v8 { namespace internal {
+
+void ArgumentsAccessStub::GenerateNewObject(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+void ArgumentsAccessStub::GenerateReadLength(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+Assembler::Assembler(void* a, int b) {
+  UNIMPLEMENTED();
+}
+
+void Assembler::GetCode(CodeDesc* a) {
+  UNIMPLEMENTED();
+}
+
+void Assembler::RecordComment(char const* a) {
+  UNIMPLEMENTED();
+}
+
+void Assembler::RecordPosition(int a) {
+  UNIMPLEMENTED();
+}
+
+void Assembler::RecordStatementPosition(int a) {
+  UNIMPLEMENTED();
+}
+
+void Assembler::bind(Label* a) {
+  UNIMPLEMENTED();
+}
+
+Assembler::~Assembler()  {
+  UNIMPLEMENTED();
+}
+
+void BreakLocationIterator::ClearDebugBreakAtReturn() {
+  UNIMPLEMENTED();
+}
+
+bool BreakLocationIterator::IsDebugBreakAtReturn()  {
+  UNIMPLEMENTED();
+  return false;
+}
+
+void BreakLocationIterator::SetDebugBreakAtReturn()  {
+  UNIMPLEMENTED();
+}
+
+void CEntryStub::GenerateBody(MacroAssembler* a, bool b) {
+  UNIMPLEMENTED();
+}
+
+void CallIC::Generate(MacroAssembler* a, int b, ExternalReference const&  
c) {
+  UNIMPLEMENTED();
+}
+
+void CallIC::GenerateMegamorphic(MacroAssembler* a, int b) {
+  UNIMPLEMENTED();
+}
+
+void CallIC::GenerateNormal(MacroAssembler* a, int b) {
+  UNIMPLEMENTED();
+}
+
+Object* CallStubCompiler::CompileCallConstant(Object* a,
+                                              JSObject* b,
+                                              JSFunction* c,
+                                              StubCompiler::CheckType d) {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+Object* CallStubCompiler::CompileCallField(Object* a,
+                                           JSObject* b,
+                                           int c,
+                                           String* d) {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+Object* CallStubCompiler::CompileCallInterceptor(Object* a,
+                                                 JSObject* b,
+                                                 String* c) {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+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) {
+  UNIMPLEMENTED();
+}
+
+void CodeGenerator::DeclareGlobals(Handle<FixedArray> a) {
+  UNIMPLEMENTED();
+}
+
+void CodeGenerator::GenCode(FunctionLiteral* a) {
+  UNIMPLEMENTED();
+}
+
+void CodeGenerator::GenerateFastCaseSwitchJumpTable(SwitchStatement* a,
+                                                    int b,
+                                                    int c,
+                                                    Label* d,
+                                                    Vector<Label*> e,
+                                                    Vector<Label> f) {
+  UNIMPLEMENTED();
+}
+
+void CpuFeatures::Probe()  {
+  UNIMPLEMENTED();
+}
+
+void Debug::GenerateCallICDebugBreak(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+void Debug::GenerateConstructCallDebugBreak(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+void Debug::GenerateKeyedLoadICDebugBreak(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+void Debug::GenerateKeyedStoreICDebugBreak(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+void Debug::GenerateLoadICDebugBreak(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+void Debug::GenerateReturnDebugBreak(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+void Debug::GenerateReturnDebugBreakEntry(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+void Debug::GenerateStoreICDebugBreak(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+void Debug::GenerateStubNoRegistersDebugBreak(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+StackFrame::Type ExitFrame::GetStateForFramePointer(unsigned char* a,
+                                                    StackFrame::State* b) {
+  UNIMPLEMENTED();
+  return NONE;
+}
+
+void JSEntryStub::GenerateBody(MacroAssembler* a, bool b) {
+  UNIMPLEMENTED();
+}
+
+int JavaScriptFrame::GetProvidedParametersCount() const {
+  UNIMPLEMENTED();
+  return 0;
+}
+
+void JumpTarget::DoBind(int a) {
+  UNIMPLEMENTED();
+}
+
+void JumpTarget::DoBranch(Condition a, Hint b) {
+  UNIMPLEMENTED();
+}
+
+void JumpTarget::DoJump() {
+  UNIMPLEMENTED();
+}
+
+void KeyedLoadIC::ClearInlinedVersion(unsigned char* a) {
+  UNIMPLEMENTED();
+}
+
+void KeyedLoadIC::Generate(MacroAssembler* a, ExternalReference const& b) {
+  UNIMPLEMENTED();
+}
+
+void KeyedLoadIC::GenerateGeneric(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+void KeyedLoadIC::GenerateMiss(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+bool KeyedLoadIC::PatchInlinedLoad(unsigned char* a, Object* b) {
+  UNIMPLEMENTED();
+  return false;
+}
+
+Object* KeyedLoadStubCompiler::CompileLoadArrayLength(String* a) {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+Object* KeyedLoadStubCompiler::CompileLoadCallback(String* a,
+                                                   JSObject* b,
+                                                   JSObject* c,
+                                                   AccessorInfo* d) {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+Object* KeyedLoadStubCompiler::CompileLoadConstant(String* a,
+                                                   JSObject* b,
+                                                   JSObject* c,
+                                                   Object* d) {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+Object* KeyedLoadStubCompiler::CompileLoadField(String* a,
+                                                JSObject* b,
+                                                JSObject* c,
+                                                int d) {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+Object* KeyedLoadStubCompiler::CompileLoadFunctionPrototype(String* a) {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+Object* KeyedLoadStubCompiler::CompileLoadInterceptor(JSObject* a,
+                                                      JSObject* b,
+                                                      String* c) {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+Object* KeyedLoadStubCompiler::CompileLoadStringLength(String* a) {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+void KeyedStoreIC::Generate(MacroAssembler* a, ExternalReference const& b)  
{
+  UNIMPLEMENTED();
+}
+
+void KeyedStoreIC::GenerateExtendStorage(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+void KeyedStoreIC::GenerateGeneric(MacroAssembler*a) {
+  UNIMPLEMENTED();
+}
+
+Object* KeyedStoreStubCompiler::CompileStoreField(JSObject* a,
+                                                  int b,
+                                                  Map* c,
+                                                  String* d) {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+void LoadIC::ClearInlinedVersion(unsigned char* a) {
+  UNIMPLEMENTED();
+}
+
+void LoadIC::Generate(MacroAssembler* a, ExternalReference const& b) {
+  UNIMPLEMENTED();
+}
+
+void LoadIC::GenerateArrayLength(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+void LoadIC::GenerateFunctionPrototype(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+void LoadIC::GenerateMegamorphic(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+void LoadIC::GenerateMiss(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+void LoadIC::GenerateNormal(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+void LoadIC::GenerateStringLength(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+bool LoadIC::PatchInlinedLoad(unsigned char* a, Object* b, int c) {
+  UNIMPLEMENTED();
+  return false;
+}
+
+Object* LoadStubCompiler::CompileLoadCallback(JSObject* a,
+                                              JSObject* b,
+                                              AccessorInfo* c,
+                                              String* d) {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+Object* LoadStubCompiler::CompileLoadConstant(JSObject* a,
+                                              JSObject* b,
+                                              Object* c,
+                                              String* d) {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+Object* LoadStubCompiler::CompileLoadField(JSObject* a,
+                                           JSObject* b,
+                                           int c,
+                                           String* d) {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+Object* LoadStubCompiler::CompileLoadInterceptor(JSObject* a,
+                                                 JSObject* b,
+                                                 String* c) {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+MacroAssembler::MacroAssembler(void* buffer, int size)
+  : Assembler(buffer, size),
+    unresolved_(0),
+    generating_stub_(false),
+    allow_stub_calls_(true),
+    code_object_(Heap::undefined_value()) {
+  UNIMPLEMENTED();
+}
+
+void MacroAssembler::TailCallRuntime(ExternalReference const& a, int b) {
+  UNIMPLEMENTED();
+}
+
+bool RegisterAllocator::IsReserved(int a) {
+  UNIMPLEMENTED();
+  return false;
+}
+
+RegisterFile RegisterAllocator::Reserved() {
+  UNIMPLEMENTED();
+  return RegisterFile();
+}
+
+const int RelocInfo::kApplyMask = -1;
+
+StackFrame::Type StackFrame::ComputeType(StackFrame::State* a) {
+  UNIMPLEMENTED();
+  return NONE;
+}
+
+void StoreIC::Generate(MacroAssembler* a, ExternalReference const& b) {
+  UNIMPLEMENTED();
+}
+
+void StoreIC::GenerateExtendStorage(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+void StoreIC::GenerateMegamorphic(MacroAssembler* a) {
+  UNIMPLEMENTED();
+}
+
+Object* StoreStubCompiler::CompileStoreCallback(JSObject* a,
+                                                AccessorInfo* b,
+                                                String* c) {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+Object* StoreStubCompiler::CompileStoreField(JSObject* a,
+                                             int b,
+                                             Map* c,
+                                             String* d) {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+Object* StoreStubCompiler::CompileStoreInterceptor(JSObject* a, String* b)  
{
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+Object* StubCompiler::CompileLazyCompile(Code::Flags a) {
+  UNIMPLEMENTED();
+  return NULL;
+}
+
+void VirtualFrame::Drop(int a) {
+  UNIMPLEMENTED();
+}
+
+int VirtualFrame::InvalidateFrameSlotAt(int a) {
+  UNIMPLEMENTED();
+  return -1;
+}
+
+void VirtualFrame::MergeTo(VirtualFrame* a) {
+  UNIMPLEMENTED();
+}
+
+Result VirtualFrame::Pop() {
+  UNIMPLEMENTED();
+  return Result(NULL);
+}
+
+Result VirtualFrame::RawCallStub(CodeStub* a) {
+  UNIMPLEMENTED();
+  return Result(NULL);
+}
+
+void VirtualFrame::SyncElementBelowStackPointer(int a) {
+  UNIMPLEMENTED();
+}
+
+void VirtualFrame::SyncElementByPushing(int a) {
+  UNIMPLEMENTED();
+}
+
+void VirtualFrame::SyncRange(int a, int b) {
+  UNIMPLEMENTED();
+}
+
+VirtualFrame::VirtualFrame(CodeGenerator* cgen)
+    : cgen_(cgen),
+      masm_(NULL),
+      elements_(0),
+      parameter_count_(0),
+      local_count_(0),
+      stack_pointer_(0),
+      frame_pointer_(kIllegalIndex) {
+  UNIMPLEMENTED();
+}
+
  } }  // namespace v8::internal

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to