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

Side by Side Diff: src/macro-assembler-arm.h

Issue 27267: Experimental: periodic merge from the bleeding edge branch to the code... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: '' Created 11 years, 10 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/log.cc ('k') | src/macro-assembler-arm.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // setup the function in r1. 223 // setup the function in r1.
224 void GetBuiltinEntry(Register target, Builtins::JavaScript id); 224 void GetBuiltinEntry(Register target, Builtins::JavaScript id);
225 225
226 struct Unresolved { 226 struct Unresolved {
227 int pc; 227 int pc;
228 uint32_t flags; // see Bootstrapper::FixupFlags decoders/encoders. 228 uint32_t flags; // see Bootstrapper::FixupFlags decoders/encoders.
229 const char* name; 229 const char* name;
230 }; 230 };
231 List<Unresolved>* unresolved() { return &unresolved_; } 231 List<Unresolved>* unresolved() { return &unresolved_; }
232 232
233 Handle<Object> CodeObject() { return code_object_; }
234
233 235
234 // --------------------------------------------------------------------------- 236 // ---------------------------------------------------------------------------
235 // StatsCounter support 237 // StatsCounter support
236 238
237 void SetCounter(StatsCounter* counter, int value, 239 void SetCounter(StatsCounter* counter, int value,
238 Register scratch1, Register scratch2); 240 Register scratch1, Register scratch2);
239 void IncrementCounter(StatsCounter* counter, int value, 241 void IncrementCounter(StatsCounter* counter, int value,
240 Register scratch1, Register scratch2); 242 Register scratch1, Register scratch2);
241 void DecrementCounter(StatsCounter* counter, int value, 243 void DecrementCounter(StatsCounter* counter, int value,
242 Register scratch1, Register scratch2); 244 Register scratch1, Register scratch2);
(...skipping 15 matching lines...) Expand all
258 // Verify restrictions about code generated in stubs. 260 // Verify restrictions about code generated in stubs.
259 void set_generating_stub(bool value) { generating_stub_ = value; } 261 void set_generating_stub(bool value) { generating_stub_ = value; }
260 bool generating_stub() { return generating_stub_; } 262 bool generating_stub() { return generating_stub_; }
261 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } 263 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; }
262 bool allow_stub_calls() { return allow_stub_calls_; } 264 bool allow_stub_calls() { return allow_stub_calls_; }
263 265
264 private: 266 private:
265 List<Unresolved> unresolved_; 267 List<Unresolved> unresolved_;
266 bool generating_stub_; 268 bool generating_stub_;
267 bool allow_stub_calls_; 269 bool allow_stub_calls_;
270 Handle<Object> code_object_; // This handle will be patched with the code
271 // object on installation.
268 272
269 // Helper functions for generating invokes. 273 // Helper functions for generating invokes.
270 void InvokePrologue(const ParameterCount& expected, 274 void InvokePrologue(const ParameterCount& expected,
271 const ParameterCount& actual, 275 const ParameterCount& actual,
272 Handle<Code> code_constant, 276 Handle<Code> code_constant,
273 Register code_reg, 277 Register code_reg,
274 Label* done, 278 Label* done,
275 InvokeFlag flag); 279 InvokeFlag flag);
276 280
277 // Get the code for the given builtin. Returns if able to resolve 281 // Get the code for the given builtin. Returns if able to resolve
(...skipping 12 matching lines...) Expand all
290 // Generate a MemOperand for loading a field from an object. 294 // Generate a MemOperand for loading a field from an object.
291 static inline MemOperand FieldMemOperand(Register object, int offset) { 295 static inline MemOperand FieldMemOperand(Register object, int offset) {
292 return MemOperand(object, offset - kHeapObjectTag); 296 return MemOperand(object, offset - kHeapObjectTag);
293 } 297 }
294 298
295 299
296 300
297 } } // namespace v8::internal 301 } } // namespace v8::internal
298 302
299 #endif // V8_MACRO_ASSEMBLER_ARM_H_ 303 #endif // V8_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698