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

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

Issue 9110029: Fix test-hashing after recent changes to string hashing. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 11 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 46
47 inline Operand SmiUntagOperand(Register object) { 47 inline Operand SmiUntagOperand(Register object) {
48 return Operand(object, ASR, kSmiTagSize); 48 return Operand(object, ASR, kSmiTagSize);
49 } 49 }
50 50
51 51
52 52
53 // Give alias names to registers 53 // Give alias names to registers
54 const Register cp = { 8 }; // JavaScript context pointer 54 const Register cp = { 8 }; // JavaScript context pointer
55 const Register roots = { 10 }; // Roots array pointer. 55 const Register kRootRegister = { 10 }; // Roots array pointer.
56 56
57 // Flags used for the AllocateInNewSpace functions. 57 // Flags used for the AllocateInNewSpace functions.
58 enum AllocationFlags { 58 enum AllocationFlags {
59 // No special flags. 59 // No special flags.
60 NO_ALLOCATION_FLAGS = 0, 60 NO_ALLOCATION_FLAGS = 0,
61 // Return the pointer to the allocated already tagged as a heap object. 61 // Return the pointer to the allocated already tagged as a heap object.
62 TAG_OBJECT = 1 << 0, 62 TAG_OBJECT = 1 << 0,
63 // The content of the result register already contains the allocation top in 63 // The content of the result register already contains the allocation top in
64 // new space. 64 // new space.
65 RESULT_CONTAINS_TOP = 1 << 1, 65 RESULT_CONTAINS_TOP = 1 << 1,
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 void LoadContext(Register dst, int context_chain_length); 492 void LoadContext(Register dst, int context_chain_length);
493 493
494 void LoadGlobalFunction(int index, Register function); 494 void LoadGlobalFunction(int index, Register function);
495 495
496 // Load the initial map from the global function. The registers 496 // Load the initial map from the global function. The registers
497 // function and map can be the same, function is then overwritten. 497 // function and map can be the same, function is then overwritten.
498 void LoadGlobalFunctionInitialMap(Register function, 498 void LoadGlobalFunctionInitialMap(Register function,
499 Register map, 499 Register map,
500 Register scratch); 500 Register scratch);
501 501
502 void InitializeRootRegister() {
503 ExternalReference roots_array_start =
504 ExternalReference::roots_array_start(isolate());
505 mov(kRootRegister, Operand(roots_array_start));
506 }
507
502 // --------------------------------------------------------------------------- 508 // ---------------------------------------------------------------------------
503 // JavaScript invokes 509 // JavaScript invokes
504 510
505 // Setup call kind marking in ecx. The method takes ecx as an 511 // Setup call kind marking in ecx. The method takes ecx as an
506 // explicit first parameter to make the code more readable at the 512 // explicit first parameter to make the code more readable at the
507 // call sites. 513 // call sites.
508 void SetCallKind(Register dst, CallKind kind); 514 void SetCallKind(Register dst, CallKind kind);
509 515
510 // Invoke the JavaScript function code by either calling or jumping. 516 // Invoke the JavaScript function code by either calling or jumping.
511 void InvokeCode(Register code, 517 void InvokeCode(Register code,
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1332 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1327 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1333 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1328 #else 1334 #else
1329 #define ACCESS_MASM(masm) masm-> 1335 #define ACCESS_MASM(masm) masm->
1330 #endif 1336 #endif
1331 1337
1332 1338
1333 } } // namespace v8::internal 1339 } } // namespace v8::internal
1334 1340
1335 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1341 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698