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

Side by Side Diff: src/objects.cc

Issue 24714004: Thumb2 Backend: Update Code objects with mode, separate Assembler methods for Thumb2 Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/objects.h ('k') | src/objects-inl.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 10169 matching lines...) Expand 10 before | Expand all | Expand 10 after
10180 Handle<Object> p = it.rinfo()->target_object_handle(origin); 10180 Handle<Object> p = it.rinfo()->target_object_handle(origin);
10181 it.rinfo()->set_target_object(*p, SKIP_WRITE_BARRIER); 10181 it.rinfo()->set_target_object(*p, SKIP_WRITE_BARRIER);
10182 } else if (mode == RelocInfo::CELL) { 10182 } else if (mode == RelocInfo::CELL) {
10183 Handle<Cell> cell = it.rinfo()->target_cell_handle(); 10183 Handle<Cell> cell = it.rinfo()->target_cell_handle();
10184 it.rinfo()->set_target_cell(*cell, SKIP_WRITE_BARRIER); 10184 it.rinfo()->set_target_cell(*cell, SKIP_WRITE_BARRIER);
10185 } else if (RelocInfo::IsCodeTarget(mode)) { 10185 } else if (RelocInfo::IsCodeTarget(mode)) {
10186 // rewrite code handles in inline cache targets to direct 10186 // rewrite code handles in inline cache targets to direct
10187 // pointers to the first instruction in the code object 10187 // pointers to the first instruction in the code object
10188 Handle<Object> p = it.rinfo()->target_object_handle(origin); 10188 Handle<Object> p = it.rinfo()->target_object_handle(origin);
10189 Code* code = Code::cast(*p); 10189 Code* code = Code::cast(*p);
10190 it.rinfo()->set_target_address(code->instruction_start(), 10190 it.rinfo()->set_target_address(code->entry(),
10191 SKIP_WRITE_BARRIER); 10191 SKIP_WRITE_BARRIER);
10192 } else if (RelocInfo::IsRuntimeEntry(mode)) { 10192 } else if (RelocInfo::IsRuntimeEntry(mode)) {
10193 Address p = it.rinfo()->target_runtime_entry(origin); 10193 Address p = it.rinfo()->target_runtime_entry(origin);
10194 it.rinfo()->set_target_runtime_entry(p, SKIP_WRITE_BARRIER); 10194 it.rinfo()->set_target_runtime_entry(p, SKIP_WRITE_BARRIER);
10195 } else { 10195 } else {
10196 it.rinfo()->apply(delta); 10196 it.rinfo()->apply(delta);
10197 } 10197 }
10198 } 10198 }
10199 CPU::FlushICache(instruction_start(), instruction_size()); 10199 CPU::FlushICache(instruction_start(), instruction_size());
10200 } 10200 }
(...skipping 5944 matching lines...) Expand 10 before | Expand all | Expand 10 after
16145 #define ERROR_MESSAGES_TEXTS(C, T) T, 16145 #define ERROR_MESSAGES_TEXTS(C, T) T,
16146 static const char* error_messages_[] = { 16146 static const char* error_messages_[] = {
16147 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16147 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16148 }; 16148 };
16149 #undef ERROR_MESSAGES_TEXTS 16149 #undef ERROR_MESSAGES_TEXTS
16150 return error_messages_[reason]; 16150 return error_messages_[reason];
16151 } 16151 }
16152 16152
16153 16153
16154 } } // namespace v8::internal 16154 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698