Revision: 18726
Author: [email protected]
Date: Tue Jan 21 22:31:31 2014 UTC
Log: MIPS: Zonify types in compiler frontend
Port r18719 (13303b7a)
Original commit message:
Clean up some zone/isolate handling in AST and its visitors on the way.
(Based on https://codereview.chromium.org/103743004/)
BUG=
[email protected]
Review URL: https://codereview.chromium.org/143873005
http://code.google.com/p/v8/source/detail?r=18726
Modified:
/branches/bleeding_edge/src/mips/codegen-mips.h
/branches/bleeding_edge/src/mips/stub-cache-mips.cc
=======================================
--- /branches/bleeding_edge/src/mips/codegen-mips.h Wed Sep 25 20:42:26
2013 UTC
+++ /branches/bleeding_edge/src/mips/codegen-mips.h Tue Jan 21 22:31:31
2014 UTC
@@ -46,8 +46,8 @@
class CodeGenerator: public AstVisitor {
public:
- explicit CodeGenerator(Isolate* isolate) {
- InitializeAstVisitor(isolate);
+ explicit CodeGenerator(Zone* zone) {
+ InitializeAstVisitor(zone);
}
static bool MakeCode(CompilationInfo* info);
=======================================
--- /branches/bleeding_edge/src/mips/stub-cache-mips.cc Tue Jan 21 12:42:24
2014 UTC
+++ /branches/bleeding_edge/src/mips/stub-cache-mips.cc Tue Jan 21 22:31:31
2014 UTC
@@ -1107,7 +1107,7 @@
#define __ ACCESS_MASM(masm())
-Register StubCompiler::CheckPrototypes(Handle<Type> type,
+Register StubCompiler::CheckPrototypes(Handle<HeapType> type,
Register object_reg,
Handle<JSObject> holder,
Register holder_reg,
@@ -1253,7 +1253,7 @@
Register LoadStubCompiler::CallbackHandlerFrontend(
- Handle<Type> type,
+ Handle<HeapType> type,
Register object_reg,
Handle<JSObject> holder,
Handle<Name> name,
@@ -1919,7 +1919,7 @@
}
-Handle<Code> LoadStubCompiler::CompileLoadNonexistent(Handle<Type> type,
+Handle<Code> LoadStubCompiler::CompileLoadNonexistent(Handle<HeapType>
type,
Handle<JSObject>
last,
Handle<Name> name) {
NonexistentHandlerFrontend(type, last, name);
@@ -2001,7 +2001,7 @@
Handle<Code> LoadStubCompiler::CompileLoadGlobal(
- Handle<Type> type,
+ Handle<HeapType> type,
Handle<GlobalObject> global,
Handle<PropertyCell> cell,
Handle<Name> name,
@@ -2055,11 +2055,11 @@
int number_of_handled_maps = 0;
__ lw(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset));
for (int current = 0; current < receiver_count; ++current) {
- Handle<Type> type = types->at(current);
+ Handle<HeapType> type = types->at(current);
Handle<Map> map = IC::TypeToMap(*type, isolate());
if (!map->is_deprecated()) {
number_of_handled_maps++;
- if (type->Is(Type::Number())) {
+ if (type->Is(HeapType::Number())) {
ASSERT(!number_case.is_unused());
__ bind(&number_case);
}
--
--
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/groups/opt_out.