Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(610)

Side by Side Diff: src/ic-inl.h

Issue 11037023: Use movw/movt instead of constant pool on ARMv7 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix nits Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ic.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 22 matching lines...) Expand all
33 #include "compiler.h" 33 #include "compiler.h"
34 #include "debug.h" 34 #include "debug.h"
35 #include "macro-assembler.h" 35 #include "macro-assembler.h"
36 36
37 namespace v8 { 37 namespace v8 {
38 namespace internal { 38 namespace internal {
39 39
40 40
41 Address IC::address() const { 41 Address IC::address() const {
42 // Get the address of the call. 42 // Get the address of the call.
43 Address result = pc() - Assembler::kCallTargetAddressOffset; 43 Address result = Assembler::target_address_from_return_address(pc());
44 44
45 #ifdef ENABLE_DEBUGGER_SUPPORT 45 #ifdef ENABLE_DEBUGGER_SUPPORT
46 Debug* debug = Isolate::Current()->debug(); 46 Debug* debug = Isolate::Current()->debug();
47 // First check if any break points are active if not just return the address 47 // First check if any break points are active if not just return the address
48 // of the call. 48 // of the call.
49 if (!debug->has_break_points()) return result; 49 if (!debug->has_break_points()) return result;
50 50
51 // At least one break point is active perform additional test to ensure that 51 // At least one break point is active perform additional test to ensure that
52 // break point locations are updated correctly. 52 // break point locations are updated correctly.
53 if (debug->IsDebugBreak(Assembler::target_address_at(result))) { 53 if (debug->IsDebugBreak(Assembler::target_address_at(result))) {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 JSObject* IC::GetCodeCacheHolder(Object* object, InlineCacheHolderFlag holder) { 131 JSObject* IC::GetCodeCacheHolder(Object* object, InlineCacheHolderFlag holder) {
132 Object* map_owner = (holder == OWN_MAP ? object : object->GetPrototype()); 132 Object* map_owner = (holder == OWN_MAP ? object : object->GetPrototype());
133 ASSERT(map_owner->IsJSObject()); 133 ASSERT(map_owner->IsJSObject());
134 return JSObject::cast(map_owner); 134 return JSObject::cast(map_owner);
135 } 135 }
136 136
137 137
138 } } // namespace v8::internal 138 } } // namespace v8::internal
139 139
140 #endif // V8_IC_INL_H_ 140 #endif // V8_IC_INL_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698