Revision: 23353
Author:   [email protected]
Date:     Mon Aug 25 12:40:11 2014 UTC
Log: X87: Move PropertyAccessCompiler and CallOptimization to their own files

port r23320.

orginal commit message:

  Move PropertyAccessCompiler and CallOptimization to their own files

BUG=
[email protected]

Review URL: https://codereview.chromium.org/498183002

Patch from Chunyang Dai <[email protected]>.
https://code.google.com/p/v8/source/detail?r=23353

Added:
 /branches/bleeding_edge/src/ic/x87/access-compiler-x87.cc
Modified:
 /branches/bleeding_edge/src/ic/x87/ic-compiler-x87.cc
 /branches/bleeding_edge/tools/gyp/v8.gyp

=======================================
--- /dev/null
+++ /branches/bleeding_edge/src/ic/x87/access-compiler-x87.cc Mon Aug 25 12:40:11 2014 UTC
@@ -0,0 +1,44 @@
+// Copyright 2014 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "src/v8.h"
+
+#if V8_TARGET_ARCH_X87
+
+#include "src/ic/access-compiler.h"
+
+namespace v8 {
+namespace internal {
+
+#define __ ACCESS_MASM(masm)
+
+void PropertyAccessCompiler::GenerateTailCall(MacroAssembler* masm,
+                                              Handle<Code> code) {
+  __ jmp(code, RelocInfo::CODE_TARGET);
+}
+
+
+Register* PropertyAccessCompiler::load_calling_convention() {
+  // receiver, name, scratch1, scratch2, scratch3, scratch4.
+  Register receiver = LoadIC::ReceiverRegister();
+  Register name = LoadIC::NameRegister();
+  static Register registers[] = {receiver, name, ebx, eax, edi, no_reg};
+  return registers;
+}
+
+
+Register* PropertyAccessCompiler::store_calling_convention() {
+  // receiver, name, scratch1, scratch2, scratch3.
+  Register receiver = StoreIC::ReceiverRegister();
+  Register name = StoreIC::NameRegister();
+  DCHECK(ebx.is(KeyedStoreIC::MapRegister()));
+  static Register registers[] = {receiver, name, ebx, edi, no_reg};
+  return registers;
+}
+
+#undef __
+}
+}  // namespace v8::internal
+
+#endif  // V8_TARGET_ARCH_X87
=======================================
--- /branches/bleeding_edge/src/ic/x87/ic-compiler-x87.cc Mon Aug 25 09:57:11 2014 UTC +++ /branches/bleeding_edge/src/ic/x87/ic-compiler-x87.cc Mon Aug 25 12:40:11 2014 UTC
@@ -6,6 +6,7 @@

 #if V8_TARGET_ARCH_X87

+#include "src/ic/call-optimization.h"
 #include "src/ic/ic-compiler.h"

 namespace v8 {
@@ -204,12 +205,6 @@
   }
   __ j(not_equal, miss);
 }
-
-
-void PropertyAccessCompiler::GenerateTailCall(MacroAssembler* masm,
-                                              Handle<Code> code) {
-  __ jmp(code, RelocInfo::CODE_TARGET);
-}


 #undef __
@@ -778,25 +773,6 @@
   // Return the generated code.
return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC);
 }
-
-
-Register* PropertyAccessCompiler::load_calling_convention() {
-  // receiver, name, scratch1, scratch2, scratch3, scratch4.
-  Register receiver = LoadIC::ReceiverRegister();
-  Register name = LoadIC::NameRegister();
-  static Register registers[] = {receiver, name, ebx, eax, edi, no_reg};
-  return registers;
-}
-
-
-Register* PropertyAccessCompiler::store_calling_convention() {
-  // receiver, name, scratch1, scratch2, scratch3.
-  Register receiver = StoreIC::ReceiverRegister();
-  Register name = StoreIC::NameRegister();
-  DCHECK(ebx.is(KeyedStoreIC::MapRegister()));
-  static Register registers[] = {receiver, name, ebx, edi, no_reg};
-  return registers;
-}


Register NamedStoreHandlerCompiler::value() { return StoreIC::ValueRegister(); }
=======================================
--- /branches/bleeding_edge/tools/gyp/v8.gyp    Mon Aug 25 11:35:22 2014 UTC
+++ /branches/bleeding_edge/tools/gyp/v8.gyp    Mon Aug 25 12:40:11 2014 UTC
@@ -922,6 +922,7 @@
             '../../src/x87/macro-assembler-x87.h',
             '../../src/x87/regexp-macro-assembler-x87.cc',
             '../../src/x87/regexp-macro-assembler-x87.h',
+            '../../src/ic/x87/access-compiler-x87.cc',
             '../../src/ic/x87/ic-x87.cc',
             '../../src/ic/x87/ic-compiler-x87.cc',
             '../../src/ic/x87/stub-cache-x87.cc',

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to